Skip to content

Commit

Permalink
Supress unused-but-set warning in p4parser
Browse files Browse the repository at this point in the history
  • Loading branch information
vlstill committed Feb 22, 2023
1 parent 8589fdf commit 7f8e6b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontends/parsers/p4/p4parser.ypp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ limitations under the License.
#include "lib/cstring.h"
#include "lib/source_file.h"

#ifdef __clang__
#if __clang_major__ >= 13
#pragma clang diagnostic ignored "-Wunused-but-set-variable"
#endif
#endif

namespace P4 {
class AbstractP4Lexer;
class P4ParserDriver;
Expand Down

0 comments on commit 7f8e6b1

Please sign in to comment.