mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 03:46:53 -05:00
Do not warn about unused macros while processing #pragma GCC optimize
libcpp PR c++/91318 * include/cpplib.h: Added cpp_define_unused(), cpp_define_formatted_unused() * directives.c: Likewise. gcc/c-family PR c++/91318 * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
This commit is contained in:
committed by
Jeff Law
parent
e7e0eeeb6e
commit
6f1ae1ecd3
@@ -1076,8 +1076,12 @@ extern cppchar_t cpp_host_to_exec_charset (cpp_reader *, cppchar_t);
|
||||
/* Used to register macros and assertions, perhaps from the command line.
|
||||
The text is the same as the command line argument. */
|
||||
extern void cpp_define (cpp_reader *, const char *);
|
||||
extern void cpp_define_unused (cpp_reader *, const char *);
|
||||
extern void cpp_define_formatted (cpp_reader *pfile,
|
||||
const char *fmt, ...) ATTRIBUTE_PRINTF_2;
|
||||
extern void cpp_define_formatted_unused (cpp_reader *pfile,
|
||||
const char *fmt,
|
||||
...) ATTRIBUTE_PRINTF_2;
|
||||
extern void cpp_assert (cpp_reader *, const char *);
|
||||
extern void cpp_undef (cpp_reader *, const char *);
|
||||
extern void cpp_unassert (cpp_reader *, const char *);
|
||||
|
||||
Reference in New Issue
Block a user