aboutsummaryrefslogtreecommitdiffstats
path: root/regparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'regparse.c')
-rw-r--r--regparse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/regparse.c b/regparse.c
index 3348381e23..309749033d 100644
--- a/regparse.c
+++ b/regparse.c
@@ -28,6 +28,13 @@
* SUCH DAMAGE.
*/
+// Suppress some false-positive compiler warnings
+#if defined(__GNUC__) && __GNUC__ >= 12
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
+#pragma GCC diagnostic ignored "-Wrestrict"
+#endif
+
#include "regparse.h"
#include <stdarg.h>