tried many methods, ex:
-fsyntax-only
-Wno-format
still got this warning:
xxxxx passing argument x of xxxx make pointer from integer without a cast
I want to disable this warning in any way.
//////////////////////
update:
in order to follow the rule here, I provide the specific code:
here is the source code I was testing:
https://github.com/vladermolaev/jam2ftdi
It can build successfully by Visual Studio.
However, I want to test it in Linux, I built it in Linux.
I saw the error log as I described in this issue.
Here is the problem code, the problem is the third input parameter, unsinged char *tdo.
because when calling this function in this project, it takes int as input parameter, not unsinged char*
https://github.com/vladermolaev/jam2ftdi/blob/master/FTDI_API.h#L5
int FTDI_WriteTMSandTDIandReadTDO(const unsigned char tms, const unsigned char tdi, unsigned char *tdo);
therefore, I already know it works since I built in Windows OS, I don't want to change code everywhere in linux platform.
Hope this is clear, and please unlock this issue.
Thanks.
///////////////////////
update:
for which line caused this error:
tdo = FTDI_WriteTMSandTDIandReadTDO(tms, tdi, read_tdo);
the usage in this project, read_tdo is int which generated this compiling warning.
Add this parameter for gcc as following:
-Wno-int-to-pointer-cast
it solves this issue.