<div dir="auto"><div><div class="gmail_extra"><br><div class="gmail_quote">On Oct 1, 2017 9:19 PM, &quot;Andrei Vagin&quot; &lt;<a href="mailto:avagin@virtuozzo.com">avagin@virtuozzo.com</a>&gt; wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="elided-text">On Sun, Oct 01, 2017 at 05:34:02PM -0700, Kir Kolyshkin wrote:<br>
&gt; With clang 4, the following error appears:<br>
&gt;<br>
&gt; &gt;   CC       criu/pie/parasite.o<br>
&gt; &gt; In file included from criu/pie/parasite.c:23:<br>
&gt; &gt; criu/arch/arm/include/asm/<wbr>parasite.h:6:21: error: this function<br>
&gt; &gt; declaration is not a<br>
&gt; &gt;       prototype [-Werror,-Wstrict-prototypes]<br>
&gt; &gt;         *ptls = ((tls_t (*)())0xffff0fe0)();<br>
&gt; &gt;                            ^<br>
&gt; &gt;                             void<br>
&gt; &gt; 1 error generated.<br>
&gt;<br>
&gt; Apparently, adding void fixes it.<br>
&gt;<br>
&gt; Signed-off-by: Kir Kolyshkin &lt;<a href="mailto:kolyshkin@gmail.com">kolyshkin@gmail.com</a>&gt;<br>
&gt; ---<br>
&gt;  criu/arch/arm/include/asm/<wbr>parasite.h | 2 +-<br>
&gt;  1 file changed, 1 insertion(+), 1 deletion(-)<br>
&gt;<br>
&gt; diff --git a/criu/arch/arm/include/asm/<wbr>parasite.h b/criu/arch/arm/include/asm/<wbr>parasite.h<br>
&gt; index 7f62bb9d..0ed320ba 100644<br>
&gt; --- a/criu/arch/arm/include/asm/<wbr>parasite.h<br>
&gt; +++ b/criu/arch/arm/include/asm/<wbr>parasite.h<br>
&gt; @@ -3,7 +3,7 @@<br>
&gt;<br>
&gt;  static inline void arch_get_tls(tls_t *ptls)<br>
&gt;  {<br>
&gt; -     *ptls = ((tls_t (*)())0xffff0fe0)();<br>
&gt; +     *ptls = ((tls_t (*)(void))0xffff0fe0)();<br>
<br>
</div>do you mean void *          ^^^^<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">No, what you see is a cast from a pointer to a function (followed by a call to it). Here void is that function argument.</span><br style="font-family:sans-serif"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt;  }<br>
&gt;<br>
&gt;  #endif<br>
<font color="#888888">&gt; --<br>
&gt; 2.14.1<br>
&gt;<br>
</font></blockquote></div><br></div></div></div>