<div dir="ltr"><div>Found it.</div><div>This is because of gcc 4.8's intended behaviour on sizeof() function in cases when calling on a pointer.<br></div><div>See <a href="https://gcc.gnu.org/gcc-4.8/porting_to.html" target="_blank">https://gcc.gnu.org/gcc-4.8/porting_to.html</a> "New warnings for pointer access".<div><div>It also exists as an unconfirmed bug: <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54381" target="_blank">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54381</a>.<br></div><div><div>This behaviour is only gcc 4.8, while 4.9 and pre-4.8 versions shouldn't do this (Sourcery uses 4.7 and 4.6, I used the own toolchain w/ 4.9)<br></div><div><br></div><div>On the open-vm-tools mail list, it came up <a href="http://sourceforge.net/p/open-vm-tools/mailman/message/32550520/" target="_blank">http://sourceforge.net/p/open-vm-tools/mailman/message/32550520/</a> , but they used -Wno-sizeof-pointer-memaccess for compilation - basically silencing the warning.</div><div><br></div><div><div>Would you recommend using -Wno-sizeof-pointer-memaccess in the .mk file or just use a 1 line patch to syncDriverPosix.c - dereferencing gRemoteFSTypes[i] with an asterisk?</div></div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 1:38 PM, Thomas Petazzoni <span dir="ltr"><<a href="mailto:thomas.petazzoni@free-electrons.com" target="_blank">thomas.petazzoni@free-electrons.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Károly Kasza,<br>
<span class=""><br>
On Mon, 15 Sep 2014 13:19:06 +0200, Károly Kasza wrote:<br>
<br>
> At first sight something happens with the ctng toolchain, while using own<br>
> toolchain or Sourcery w/ the same packages/options the problem does not<br>
> occur. I'm looking in the x86_64-ctng_locales-linux-gnu toolchain right now.<br>
<br>
</span>Note that it does not happen only with a ctng toolchain. See for<br>
example<br>
<a href="http://autobuild.buildroot.org/results/d1b/d1bf0d43389ff536ec79dd5d6a7cd0b12293233d//" target="_blank">http://autobuild.buildroot.org/results/d1b/d1bf0d43389ff536ec79dd5d6a7cd0b12293233d//</a>,<br>
where the same problem happens with a BR toolchain.<br>
<div class="HOEnZb"><div class="h5"><br>
Thomas<br>
--<br>
Thomas Petazzoni, CTO, Free Electrons<br>
Embedded Linux, Kernel and Android engineering<br>
<a href="http://free-electrons.com" target="_blank">http://free-electrons.com</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><br></div>Üdv,<div>KK</div></div>
</div>