Kaydet (Commit) d1a74c27 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Silence unhelpful -Wpotentially-evaluated-expression

...on Clang trunk towards 3.6, firing for typeid(*e) where e is a side-effecting
expression (of polymorphic pointer type).  Simpler to disable it via #if in
sal/config.h than to disable it in solenv/gbuild/platform/com_GCC_defs.mk with
an additional feature test in configure.ac.

Change-Id: If94692a9e06ff2659bf168b4968200aeee9ebb0a
üst 1887d4f5
......@@ -86,6 +86,12 @@
#define SAL_CONFIGFILE( name ) name "rc"
#endif
#if defined __clang__
#if __has_warning("-Wpotentially-evaluated-expression")
#pragma GCC diagnostic ignored "-Wpotentially-evaluated-expression"
#endif
#endif
#endif // INCLUDED_SAL_CONFIG_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment