GFlags: Fix usage of unused attribute

This commit is contained in:
Sergey Sharybin 2018-03-22 17:19:56 +01:00
parent 2a4c40f4b9
commit 9f45f1a6b7
2 changed files with 8 additions and 1 deletions

View File

@ -21,3 +21,6 @@ Local modifications:
not trigger strict compiler warning.
- Did the same for CommandLineFlagParser::ValidateFlags().
- Ifdef-ed __attribute((unused)) in gflags.h.
This file is compile-time configurable in upstream, so can not avoid change here.

View File

@ -285,7 +285,11 @@ class GFLAGS_DLL_DECL FlagSaver {
FlagSaver(const FlagSaver&); // no copying!
void operator=(const FlagSaver&);
}__attribute((unused));
}
#ifdef __GNUC__
__attribute((unused))
#endif
;
// --------------------------------------------------------------------
// Some deprecated or hopefully-soon-to-be-deprecated functions.