https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69558
Bug ID: 69558 Summary: [6 Regression] glib2 warning pragmas stopped working Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- Starting with 228049 #define A \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"") #define B \ _Pragma ("GCC diagnostic pop") #define C(x) \ A \ static inline void bar (void) { x (); } \ B __attribute__((deprecated)) void foo (void); C (foo) warns about deprecated use, while before that we didn't warn.