Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc:2:29: error: pasting ""GCC diagnostic ignored "" and ""-Wuseless-cast"" does not give a valid preprocessing token
#define SUPPRESS(w) _Pragma("GCC diagnostic ignored " ## w)
^~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:4:1: note: in expansion of macro 'SUPPRESS'
SUPPRESS("-Wuseless-cast")
^~~~~~~~
prog.cc:4:1: error: _Pragma takes a parenthesized string literal
SUPPRESS("-Wuseless-cast")
^~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:2:21: error: '_Pragma' does not name a type
#define SUPPRESS(w) _Pragma("GCC diagnostic ignored " ## w)
^~~~~~~
prog.cc:4:1: note: in expansion of macro 'SUPPRESS'
SUPPRESS("-Wuseless-cast")
^~~~~~~~
Exit Code:
1