[Bug c/67276] New: duplicated missing terminating character diagnostic
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 19 14:57:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67276
Bug ID: 67276
Summary: duplicated missing terminating character diagnostic
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: manu at gcc dot gnu.org
Target Milestone: ---
>From gcc.dg/pragma-message.c:
#pragma message "
/home/manuel/test.c:1:17: warning: missing terminating " character
#pragma message "
^
/home/manuel/test.c:1:9: error: missing terminating " character
#pragma message "
^
It doesn't make sense to give a warning if we are going to give an error
anyway. Moreover, this is a pedwarn, so with -pedantic-errors we get two
errors.
More information about the Gcc-bugs
mailing list