Skip to content

Commit

Permalink
Allow to specify -DSSE2NEON_SUPPRESS_WARNINGS to avoid the #warning a…
Browse files Browse the repository at this point in the history
…bout optimization issues

This warning breaks builds of applications using -Werror.
  • Loading branch information
rouault committed Nov 3, 2024
1 parent b72d48e commit 0294162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sse2neon.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
#warning "GCC versions earlier than 10 are not supported."
#endif

#ifdef __OPTIMIZE__
#if defined(__OPTIMIZE__) && !defined(SSE2NEON_SUPPRESS_WARNINGS)
#warning \
"Report any potential compiler optimization issues when using SSE2NEON. See the 'Optimization' section at https://github.com/DLTcollab/sse2neon."
#endif
Expand Down

0 comments on commit 0294162

Please sign in to comment.