Skip to content
Snippets Groups Projects
Commit 5fb54bf8 authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

rts: Disable `#pragma GCC`s on clang compilers

Otherwise the build fails due to warnings. See #23530.
parent 94f00e9b
No related branches found
No related tags found
No related merge requests found
...@@ -18,11 +18,13 @@ ...@@ -18,11 +18,13 @@
since we compile these things these days with cabal we can no longer since we compile these things these days with cabal we can no longer
specify optimization per file. So we have to resort to pragmas. */ specify optimization per file. So we have to resort to pragmas. */
#if defined(__GNUC__) || defined(__GNUG__) #if defined(__GNUC__) || defined(__GNUG__)
#if !defined(__clang__)
#if !defined(DEBUG) #if !defined(DEBUG)
#pragma GCC push_options #pragma GCC push_options
#pragma GCC optimize ("O3") #pragma GCC optimize ("O3")
#endif #endif
#endif #endif
#endif
#define XXH_NAMESPACE __rts_ #define XXH_NAMESPACE __rts_
#define XXH_STATIC_LINKING_ONLY /* access advanced declarations */ #define XXH_STATIC_LINKING_ONLY /* access advanced declarations */
...@@ -565,7 +567,9 @@ int keyCountHashTable (HashTable *table) ...@@ -565,7 +567,9 @@ int keyCountHashTable (HashTable *table)
#if defined(__GNUC__) || defined(__GNUG__) #if defined(__GNUC__) || defined(__GNUG__)
#if !defined(__clang__)
#if !defined(DEBUG) #if !defined(DEBUG)
#pragma GCC pop_options #pragma GCC pop_options
#endif #endif
#endif #endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment