Skip to content

Commit c7c200c

Browse files
committed
Fix a warning about nonnull comparison
1 parent 41f03c7 commit c7c200c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

string/bcmp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#undef ODD
66
#define ODD(x) ((int)((long)(x) & 1L))
77

8+
#if __GNUC_PREREQ(7, 0)
9+
#pragma GCC diagnostic ignored "-Wnonnull-compare"
10+
#endif
11+
812
/*
913
* compare n bytes efficientlty
1014
*

0 commit comments

Comments
 (0)