8000 Fix detection of GCC >= 4.7 in diagnostic handling macros · coderforlife/ms-compress@82b3971 · GitHub
[go: up one dir, main page]

Skip to content

Commit 82b3971

Browse files
committed
Fix detection of GCC >= 4.7 in diagnostic handling macros
1 parent f05faa7 commit 82b3971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mscomp/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ typedef const_byte* RESTRICT const_rest_bytes;
409409
#define WARNINGS_IGNORE_ASSIGNMENT_WITHIN_COND_EXPR()
410410
#define WARNINGS_IGNORE_TRUNCATED_OVERFLOW() _Pragma("GCC diagnostic ignored \"-Woverflow\"")
411411
#define WARNINGS_IGNORE_ASSIGNMENT_OPERATOR_NOT_GENERATED()
412-
#if __GNUC__ == 4 && __GNUC_MINOR__ >= 7
412+
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)
413413 #define WARNINGS_IGNORE_POTENTIAL_UNINIT_VALRIABLE_USED() _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
414414
#else
415415
#define WARNINGS_IGNORE_POTENTIAL_UNINIT_VALRIABLE_USED()

0 commit comments

Comments
 (0)
0