From fd8363a62cc2c1318a0b58b442c3fbc451554fa2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 1 May 2021 20:23:19 +0100 Subject: Fixup clang, cppcheck and iwyu warnings --- lib/jsonParse.ll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/jsonParse.ll') 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; } -- cgit v1.2.3