diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-04-27 12:36:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-26 21:36:59 -0700 |
| commit | 3acbe8145c60f4d1e7a180b4602a94269a489df5 (patch) | |
| tree | 8031e7ca897260ac3ab6d2a920864f3114bc8668 /source/compiler-core/slang-json-lexer.cpp | |
| parent | a3da31c189a1cc9bdf85a42ac359b8c2777f3550 (diff) | |
Fix most of the disabled warnings on gcc/clang (#2839)
Diffstat (limited to 'source/compiler-core/slang-json-lexer.cpp')
| -rw-r--r-- | source/compiler-core/slang-json-lexer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/compiler-core/slang-json-lexer.cpp b/source/compiler-core/slang-json-lexer.cpp index 428afca63..0476ca37a 100644 --- a/source/compiler-core/slang-json-lexer.cpp +++ b/source/compiler-core/slang-json-lexer.cpp @@ -156,7 +156,6 @@ JSONTokenType JSONLexer::advance() { // Line comment cursor = _lexLineComment(cursor); - break; } else if (nextChar == '*') { @@ -166,8 +165,12 @@ JSONTokenType JSONLexer::advance() { return _setInvalidToken(); } - break; } + else + { + return _setInvalidToken(); + } + break; } case ' ': case '\t': |
