thiagoralves / OpenPLC_v3

OpenPLC Runtime version 3
1.02k stars 421 forks source link

reduction in compiler warnings #227

Closed r2k-in-the-vortex closed 4 months ago

r2k-in-the-vortex commented 4 months ago

in main.cpp log() function is responsible for most compiler warnings that are ignored with -w flag

changed it from void log(unsigned char logmsg) to void log(char logmsg)

normally in c strings are arrays of char, not of unsigned char, -fpermissive and -w hides the issue, but this wall of warnings is problematic when trying to make sure nothing else is wrong.

this one change reduced warnings from 125 to 56