[Vm-dev] B3DAccelerator on 64bits
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
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]
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...
More information about the Vm-dev