News for hackers. Stuff that matters.
Re:Useful GCC warning options not enabled by -Wall -Wextra by spc476 on Wednesday October 04, 2017 @05:06PM (#15404657)
I have one project where I run with "-pedantic -std=c99 -Wall -Wextra". The one error that pops up is:

     warning: ISO C forbids assignment between function pointer and ‘void *’ [-pedantic]
But POSIX requires that behavior (the actual target of the build). So for now, it's benign, but if the platform changes (to a non-POSIX system) then yes, it will have to be investigated.
Re:Useful GCC warning options not enabled by -Wall -Wextra by nwellnhof on Thursday October 05, 2017 @07:43AM (#15408334)
This affects many codebases. For example, looking up functions with `dlsym` triggers this warning which is probably one of the main reasons for the POSIX requirement. It's unfortunate that GCC doesn't allow to disable only this particular warning. When writing cross-platform code, `-pedantic` is too useful to disable completely.
Re:Useful GCC warning options not enabled by -Wall -Wextra by daurnimator on Thursday October 05, 2017 @04:23AM (#15407463)
Try using intptr_t