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
I hesitate to submit a PR since (ideally) it should include a test and I'm not sure what would fit best in this project. (And, as I'm working on other things, I'm not able to properly explore that currently.)
However, as for how to test, one suggestion is to preprocess with cpp -undef to get a "compiler-agnostic" version and then feed that to GCC. That's effectively what I was doing when I ran into this.
As of commit 87878b2,
printf.h
when preprocessed without__GNUC__
has this macro definition:This is invalid since the macro parameters have extra parentheses.
cpp -undef
(which does not set__GNUC__
) complains:In the original commit, that line should not have been changed.
Ideally, there should also be an automated test that exercises this printf implementation without
__GNUC__
, as that would have caught this error.The text was updated successfully, but these errors were encountered: