Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gdb: Suppress "unused" variable warning on Clang
Clang generates a warning if there is a variable which is written but not read thereafter. By the default configuration (with "-Werror"), it causes a build failure (unless "--disable-werror" is specified). Because the cause of this error is in the Bison-generated code ($(binutils)/gdb/cp-name-parser.y -> $(srcdir)/gdb/cp-name-parser.c), this commit suppresses this warning ("-Wunused-but-set-variable") by placing the DIAGNOSTIC_IGNORE_UNUSED_BUT_SET_VARIABLE macro at the end of user prologue on cp-name-parser.y. gdb/ChangeLog: * cp-name-parser.y: Suppress -Wunused-but-set-variable warning on the Bison-generated code.
- Loading branch information