aboutsummaryrefslogtreecommitdiff
path: root/target/hexagon/idef-parser/idef-parser.y
diff options
context:
space:
mode:
authorAlessandro Di Federico <ale@rev.ng>2022-12-21 16:53:27 +0100
committerTaylor Simpson <tsimpson@quicinc.com>2023-01-05 09:19:02 -0800
commit8a9ce0952b1eeb157bd1ba6b02fd7b8c2e9b62a5 (patch)
treed589a673ffcb7d49446b3acea4356ffe537cf276 /target/hexagon/idef-parser/idef-parser.y
parentaa62435043bb43fdc6826e49e74babab8062c785 (diff)
downloadqemu-8a9ce0952b1eeb157bd1ba6b02fd7b8c2e9b62a5.zip
qemu-8a9ce0952b1eeb157bd1ba6b02fd7b8c2e9b62a5.tar.gz
qemu-8a9ce0952b1eeb157bd1ba6b02fd7b8c2e9b62a5.tar.bz2
target/hexagon: suppress unused variable warning
This patch manually suppresses a warning for an unused variable (yynerrs) emitted by bison. This warning has been triggered for the first time by clang 15. This patch also disables `-Wextra`, which is not usually adopted in QEMU. However, clang 15 triggers the warning fixed in this patch even in absence of `-Wextra`. Signed-off-by: Alessandro Di Federico <ale@rev.ng> Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Tested-by: Taylor Simpson <tsimpson@quicinc.com> Message-Id: <20221221155327.1504117-1-ale@rev.ng>
Diffstat (limited to 'target/hexagon/idef-parser/idef-parser.y')
-rw-r--r--target/hexagon/idef-parser/idef-parser.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/hexagon/idef-parser/idef-parser.y b/target/hexagon/idef-parser/idef-parser.y
index 8be44a0..c14cb39 100644
--- a/target/hexagon/idef-parser/idef-parser.y
+++ b/target/hexagon/idef-parser/idef-parser.y
@@ -99,6 +99,8 @@
/* Input file containing the description of each hexagon instruction */
input : instructions
{
+ /* Suppress warning about unused yynerrs */
+ (void) yynerrs;
YYACCEPT;
}
;