summaryrefslogtreecommitdiff
path: root/lib/jsonParse.ll
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-05-01 20:23:19 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:37 +0000
commitfd8363a62cc2c1318a0b58b442c3fbc451554fa2 (patch)
treedf7f2a5700d3a0ed7c35ff3609cd0453386ec4c5 /lib/jsonParse.ll
parentPass new values more efficiently (diff)
downloadilt-fd8363a62cc2c1318a0b58b442c3fbc451554fa2.tar.bz2
ilt-fd8363a62cc2c1318a0b58b442c3fbc451554fa2.tar.xz
ilt-fd8363a62cc2c1318a0b58b442c3fbc451554fa2.zip
Fixup clang, cppcheck and iwyu warnings
Diffstat (limited to 'lib/jsonParse.ll')
-rw-r--r--lib/jsonParse.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/jsonParse.ll b/lib/jsonParse.ll
index c9c708c..ab09e80 100644
--- a/lib/jsonParse.ll
+++ b/lib/jsonParse.ll
@@ -17,7 +17,6 @@ class jsonBaseFlexLexer;
#ifdef __clang__
#pragma clang diagnostic ignored "-Wnull-conversion"
#endif
-[[maybe_unused]]static constexpr auto x=getpid;
%}
beginobj "{"
@@ -155,4 +154,6 @@ text [^\\\"]*
<*>. {
LexerError("Unexpected input");
+ // Make iwyu think unistd.h is required
+ [[maybe_unused]]static constexpr auto x=getpid;
}