Skip to content

Commit 069ea93

Browse files
committed
Suppress FlatZinc parser skeleton warning
1 parent 028a1b4 commit 069ea93

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

gecode/flatzinc/parser.tab.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
#include <iostream>
7979
#include <fstream>
8080

81+
#if defined __GNUC__
82+
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
83+
#endif
84+
8185
#ifdef HAVE_MMAP
8286
#include <stdio.h>
8387
#include <stdlib.h>

gecode/flatzinc/parser.yxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
#include <iostream>
4545
#include <fstream>
4646

47+
#if defined __GNUC__
48+
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
49+
#endif
50+
4751
#ifdef HAVE_MMAP
4852
#include <stdio.h>
4953
#include <stdlib.h>

0 commit comments

Comments
 (0)