You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after upgrading to the new release v0.6.0 and compiling with the flags -Wall and -Werror I get these two errors:
[-Werror=int-to-pointer-cast]
iso14229/iso14229.c:517:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
517 | *memoryAddress = (void *)tmp;
Regarding this error, does the tmp variable has to be of the type long long unsigned int? When I remove one long to make it long unsigned int, it compiles with no warnings (errors) - when using the -Werror flag warnings are made to errors. I would highly recommend to keep the standard of the library to compile with no warnings, no matter how "trivial".
You addressed the second warning ([-Werror=stringop-truncation]) in #20 with commit fb401496, while the first warning ([-Werror=int-to-pointer-cast]) unfortunately remained unsolved. Would it be fine to change tmp in line 483 in iso14229.c from a long long unsigned int to a long unsigned int? Or are you working on a 64 bit system?
Hello @driftregion again,
after upgrading to the new release v0.6.0 and compiling with the flags
-Wall
and-Werror
I get these two errors:Regarding this error, does the
tmp
variable has to be of the typelong long unsigned int
? When I remove onelong
to make itlong unsigned int
, it compiles with no warnings (errors) - when using the-Werror
flag warnings are made to errors. I would highly recommend to keep the standard of the library to compile with no warnings, no matter how "trivial".First, I appreciate changing to the more secure variant
strncpy()
. I could fix this warning by changing the line 239 ofiso14229.c
from:to
Let me know what you think about these warnings and whether you think these changes are worth making.
The text was updated successfully, but these errors were encountered: