diff options
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-08-31 12:32:55 +0000 |
---|---|---|
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-08-31 12:32:55 +0000 |
commit | f506f41434be973a04502697b9681b85ff7ed48b (patch) | |
tree | 699d463c787881eabb243088cd6c1f47866bc747 /openmp/runtime/src | |
parent | 050e0cbc0ec3d66b508390611ecf432c28b3e591 (diff) | |
download | bcm5719-llvm-f506f41434be973a04502697b9681b85ff7ed48b.tar.gz bcm5719-llvm-f506f41434be973a04502697b9681b85ff7ed48b.zip |
D12403: Fix GCC warning 'always_inline function might not be inlinable'
llvm-svn: 246434
Diffstat (limited to 'openmp/runtime/src')
3 files changed, 6 insertions, 3 deletions
diff --git a/openmp/runtime/src/thirdparty/ittnotify/ittnotify.h b/openmp/runtime/src/thirdparty/ittnotify/ittnotify.h index c79f110cc1e..c3792f30a00 100644 --- a/openmp/runtime/src/thirdparty/ittnotify/ittnotify.h +++ b/openmp/runtime/src/thirdparty/ittnotify/ittnotify.h @@ -179,10 +179,11 @@ The same ID may not be reused for different instances, unless a previous */ #ifdef __STRICT_ANSI__ #define ITT_INLINE static +#define ITT_INLINE_ATTRIBUTE __attribute__((unused)) #else /* __STRICT_ANSI__ */ #define ITT_INLINE static inline +#define ITT_INLINE_ATTRIBUTE __attribute__((always_inline, unused)) #endif /* __STRICT_ANSI__ */ -#define ITT_INLINE_ATTRIBUTE __attribute__ ((always_inline, unused)) #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ /** @endcond */ diff --git a/openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h b/openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h index 827fec37a66..710bbe92264 100644 --- a/openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h +++ b/openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h @@ -113,10 +113,11 @@ */ #ifdef __STRICT_ANSI__ #define ITT_INLINE static +#define ITT_INLINE_ATTRIBUTE __attribute__((unused)) #else /* __STRICT_ANSI__ */ #define ITT_INLINE static inline +#define ITT_INLINE_ATTRIBUTE __attribute__((always_inline, unused)) #endif /* __STRICT_ANSI__ */ -#define ITT_INLINE_ATTRIBUTE __attribute__ ((always_inline, unused)) #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ /** @endcond */ diff --git a/openmp/runtime/src/thirdparty/ittnotify/legacy/ittnotify.h b/openmp/runtime/src/thirdparty/ittnotify/legacy/ittnotify.h index 4d87bd3ded9..4cf81db6348 100644 --- a/openmp/runtime/src/thirdparty/ittnotify/legacy/ittnotify.h +++ b/openmp/runtime/src/thirdparty/ittnotify/legacy/ittnotify.h @@ -118,10 +118,11 @@ */ #ifdef __STRICT_ANSI__ #define ITT_INLINE static +#define ITT_INLINE_ATTRIBUTE __attribute__((unused)) #else /* __STRICT_ANSI__ */ #define ITT_INLINE static inline +#define ITT_INLINE_ATTRIBUTE __attribute__((always_inline, unused)) #endif /* __STRICT_ANSI__ */ -#define ITT_INLINE_ATTRIBUTE __attribute__ ((always_inline, unused)) #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ /** @endcond */ |