Skip to content

Commit

Permalink
Looks like __GNUC__ is set even if clang is used
Browse files Browse the repository at this point in the history
  • Loading branch information
VeithMetro authored Nov 6, 2024
1 parent 0d057fe commit 6696d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/core/Portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
#define DISABLE_WARNING_ARRAY_BOUNDS PUSH_WARNING_ARG_("-Warray-bounds")
#endif

#if (__GNUC__ >= 4)
#if !(defined(__clang__)) && (__GNUC__ >= 4)
#define DISABLE_WARNING_STRING_OPERATION_OVERREAD PUSH_WARNING_ARG_("-Wstringop-overread")
#else
#define DISABLE_WARNING_STRING_OPERATION_OVERREAD
Expand Down

0 comments on commit 6696d01

Please sign in to comment.