[Bug c/79554] New: Zero length format string passed to fprintf under if statement causes error message

2017-02-16 Thread cnconlinux at gmail dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: cnconlinux at gmail dot com Target Milestone: --- I've written a macro which throws compilation error while there is no error at all. strcmp makes a check to

[Bug c/79554] Zero length format string passed to fprintf under if statement causes error message

2017-02-21 Thread cnconlinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79554 --- Comment #3 from Андрей Доценко --- (In reply to Jakub Jelinek from comment #1) > In the first macro fmt_ isn't defined at all (nor there is a fmt_ variable), > so I doubt it compiles at all. > And, in the second macro, the warning is 100% cor