e62b087fce
For one, loplugin:unusedvariablecheck does not merely check for unused variables
with types from the standard library since
fe2164949b
"teach unusedvariablecheck plugin about
SfxPoolItem subclasses", so disabling loplugin:unusedvariablecheck based on
HAVE_GCC_ATTRIBUTE_WARN_UNUSED_STL is wrong.
For another, I have seen no standard library implementation that decorates its
types with such "warn-if-unused" attributes, and
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0600r0.pdf>
"[[nodiscard]] in the Library" (which proposes to add the corresponding C++17
attribute to just a few select functions and no types at all) makes it appear
unlikely that will happen.
Change-Id: I0a7759e1caf3e3137057c9689080948a4d6747e0
26 lines
723 B
C
26 lines
723 B
C
/*
|
|
Global configuration file.
|
|
|
|
Only for settings that apply to every source file and are unlikely to change often,
|
|
such as whether a certain C++11 feature is available.
|
|
|
|
Do NOT use for settings local to some code or for settings that can change often.
|
|
Any change in this header will cause a rebuild of almost everything.
|
|
|
|
*/
|
|
|
|
#ifndef CONFIG_GLOBAL_H
|
|
#define CONFIG_GLOBAL_H
|
|
|
|
#define HAVE_CXX14_CONSTEXPR 0
|
|
#define HAVE_GCC_BUILTIN_ATOMIC 0
|
|
#define HAVE_GCC_BUILTIN_FFS 0
|
|
/* _Pragma */
|
|
#define HAVE_GCC_PRAGMA_OPERATOR 0
|
|
#define HAVE_GCC_DEPRECATED_MESSAGE 0
|
|
#define HAVE_BROKEN_CONST_ITERATORS 0
|
|
#define HAVE_SYSLOG_H 0
|
|
/* Compiler supports __attribute__((warn_unused)). */
|
|
#define HAVE_GCC_ATTRIBUTE_WARN_UNUSED 0
|
|
|
|
#endif
|