thiagoralves / OpenPLC_v3

OpenPLC Runtime version 3
GNU General Public License v3.0
1.12k stars 453 forks source link

reduction in compiler warnings #227

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

r2k-in-the-vortex commented 8 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