aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
Diffstat (limited to 'gold')
-rw-r--r--gold/yyscript.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/yyscript.y b/gold/yyscript.y
index 909786f..fe8f681 100644
--- a/gold/yyscript.y
+++ b/gold/yyscript.y
@@ -26,6 +26,7 @@
%{
#include "config.h"
+#include "diagnostics.h"
#include <stddef.h>
#include <stdint.h>
@@ -34,6 +35,8 @@
#include "script-c.h"
+DIAGNOSTIC_IGNORE_UNUSED_BUT_SET_VARIABLE
+
%}
/* We need to use a pure parser because we might be multi-threaded.