summaryrefslogtreecommitdiffstats
path: root/src/lib/eval
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2023-05-17 14:49:41 +0200
committerFrancis Dupont <fdupont@isc.org>2023-05-17 19:04:26 +0200
commitcb57d0ab967f0b2b6842c5e4322d8b9c1bd35630 (patch)
tree9351e91a0bdb1bf5ff72dc731e65e725e0a679a1 /src/lib/eval
parent[#2658] address review comments (diff)
downloadkea-cb57d0ab967f0b2b6842c5e4322d8b9c1bd35630.tar.xz
kea-cb57d0ab967f0b2b6842c5e4322d8b9c1bd35630.zip
[#2862] Push before regen
Diffstat (limited to 'src/lib/eval')
-rw-r--r--src/lib/eval/parser.yy7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/eval/parser.yy b/src/lib/eval/parser.yy
index d762e66b09..2015e8398d 100644
--- a/src/lib/eval/parser.yy
+++ b/src/lib/eval/parser.yy
@@ -1,4 +1,4 @@
-/* Copyright (C) 2015-2022 Internet Systems Consortium, Inc. ("ISC")
+/* Copyright (C) 2015-2023 Internet Systems Consortium, Inc. ("ISC")
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -32,6 +32,11 @@ using namespace isc::eval;
%code
{
# include "eval_context.h"
+
+// Avoid warnings with the error counter.
+#if defined(__GNUC__) || defined(__clang__)
+#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
+#endif
}
%define api.token.prefix {TOKEN_}