Skip to content

Commit 26f4943

Browse files
authored
Merge pull request cameron314#243 from philbucher/patch-1
don't warn on pragma GCC with Intel compiler
2 parents 3747268 + 4c8240b commit 26f4943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

concurrentqueue.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#pragma once
3333

34-
#if defined(__GNUC__)
34+
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
3535
// Disable -Wconversion warnings (spuriously triggered when Traits::size_t and
3636
// Traits::index_t are set to < 32 bits, causing integer promotion, causing warnings
3737
// upon assigning any computed values)
@@ -3737,6 +3737,6 @@ inline void swap(typename ConcurrentQueue<T, Traits>::ImplicitProducerKVP& a, ty
37373737
#pragma warning(pop)
37383738
#endif
37393739

3740-
#if defined(__GNUC__)
3740+
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
37413741
#pragma GCC diagnostic pop
37423742
#endif

0 commit comments

Comments
 (0)