icecc / icecream

Distributed compiler with a central scheduler to share build load
GNU General Public License v2.0
1.6k stars 252 forks source link

Warning: argument -pedantic, forcing local preprocessing - even with -std flag specified #630

Open mliszcz opened 7 months ago

mliszcz commented 7 months ago

I noticed this warning with gcc 12.2.0:

ICECC[13224] 2024-03-18 14:34:38: argument -pedantic, forcing local preprocessing (try using -std=cXX instead of -std=gnuXX)

Indeed we have -Wpedantic BUT we also have -std=c++17.

The check is implemented here: https://github.com/icecc/icecream/blob/9d397ef13508053802fb5048a92e92b918e5c32e/client/arg.cpp#L891-L897

The standard variable is declared on top but never assigned: https://github.com/icecc/icecream/blob/9d397ef13508053802fb5048a92e92b918e5c32e/client/arg.cpp#L319

Is remote preprocessing supposed to work as described in the warning message/comment? If yes and it was overlooked, I can send a PR.