diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-08 10:58:04 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-08 10:58:04 +0100 |
commit | d3a6b6f1a8e9d8aa2fdc5575597ec8091a4b2d6e (patch) | |
tree | 01ec0d556b8c8caf835a51feaa51c13b817dda1d /include | |
parent | 26049777aed944c57d51f6baa132c742edaa4ac3 (diff) |
Remove obsolete "lo_warn_unused" workaround
Per README.md, Clang 3.4 is the baseline for --enable-compiler-plugins, which is
the sole consumer of the "lo_warn_unused" attribute, but Clang 3.4 already
supports HAVE_GCC_ATTRIBUTE_WARN_UNUSED.
Change-Id: I9654028e24852335e463c73bcb5ece5e5b54d53c
Diffstat (limited to 'include')
-rw-r--r-- | include/sal/types.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/sal/types.h b/include/sal/types.h index 90ebae5560da..d1f5dbeec507 100644 --- a/include/sal/types.h +++ b/include/sal/types.h @@ -602,8 +602,6 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) { #if HAVE_GCC_ATTRIBUTE_WARN_UNUSED #define SAL_WARN_UNUSED __attribute__((warn_unused)) -#elif defined __clang__ -#define SAL_WARN_UNUSED __attribute__((annotate("lo_warn_unused"))) #else #define SAL_WARN_UNUSED #endif |