C - Incompatible Pointer Type
<p>Why does the following code give warnings?</p>

<pre><code>int main(void)
{
    struct {int x; int y;} test = {42, 1337};
    struct {int x; int y;} *test_ptr = &amp;test;
}
</code></pre>

<p>Results:</p>

<pre><code>warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
         struct {int x; int y;} *test_ptr = &amp;test;
                                            ^
</code></pre>