summaryrefslogtreecommitdiff
path: root/lib/jsonParse.ll
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jsonParse.ll')
-rw-r--r--lib/jsonParse.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/jsonParse.ll b/lib/jsonParse.ll
index 52ad89f..c9c708c 100644
--- a/lib/jsonParse.ll
+++ b/lib/jsonParse.ll
@@ -17,6 +17,7 @@ class jsonBaseFlexLexer;
#ifdef __clang__
#pragma clang diagnostic ignored "-Wnull-conversion"
#endif
+[[maybe_unused]]static constexpr auto x=getpid;
%}
beginobj "{"
@@ -152,7 +153,6 @@ text [^\\\"]*
<*>[ \t\r\n\f] {
}
-%%
-
-// Make iwyu think unistd.h is required
-[[maybe_unused]]static auto x=getpid;
+<*>. {
+ LexerError("Unexpected input");
+}