[Vm-dev] B3DAccelerator on 64bits

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Dec 11 09:38:02 UTC 2018

Compiler warnings on 64bits for B3DAccelerator Plugin makes me think it
can't work:

clang-5.0: warning: argument unused during compilation: '-mdll'
warning: implicit declaration of function 'getImageName' is invalid in C99
warning: incompatible integer to pointer conversion passing 'int' to
parameter of type 'const char *' [-Wint-conversion]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/string.h:61:77: note:
passing argument to parameter '_Source' here
  char * __cdecl strcpy(char * __restrict__ _Dest,const char * __restrict__

We are going to pass an address on 32bits because getImageName() has not
been declared and will be considered as returning an int...
If the address were on low end of address space it could eventually work,
but we can't depend on such property.

It's vital that we properly declare function prototypes (preferably by
using ad hoc header) and all  [-Wimplicit-function-declaration] reports
deserve greater attention.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20181211/b555a576/attachment-0001.html>

More information about the Vm-dev mailing list