diff options
author | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-09-12 08:04:40 +0000 |
---|---|---|
committer | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-09-22 10:53:24 +0000 |
commit | d9fa9b7c3306008ee97140a3aafc56999d8cd2cd (patch) | |
tree | b6eec8598f58800186a12427299815082c668f9b /gprof/source.h | |
parent | c59ea02cc3cbc89cde1fcb72e4267b73cdaf7f55 (diff) | |
download | gdb-d9fa9b7c3306008ee97140a3aafc56999d8cd2cd.zip gdb-d9fa9b7c3306008ee97140a3aafc56999d8cd2cd.tar.gz gdb-d9fa9b7c3306008ee97140a3aafc56999d8cd2cd.tar.bz2 |
include: Add macro to ignore -Wunused-but-set-variable
"-Wunused-but-set-variable" warning option can be helpful to track variables
that are written but not read thereafter. But it can be harmful if some of
the code is auto-generated and we have no ways to deal with it.
The particular example is Bison-generated code.
The new DIAGNOSTIC_IGNORE_UNUSED_BUT_SET_VARIABLE macro can be helpful on
such cases. A typical use of this macro is to place this macro before the
end of user prologues on Bison (.y) files.
include/ChangeLog:
* diagnostics.h (DIAGNOSTIC_IGNORE_UNUSED_BUT_SET_VARIABLE): New.
Diffstat (limited to 'gprof/source.h')
0 files changed, 0 insertions, 0 deletions