Skip to content

Commit 07f87b0

Browse files
authored
Clang: -Wno-null-conversion for Lexer (#3333)
## Summary Silence a warning in the lexer used in the parser for Clang 12. ## Additional background ``` /g/g90/huebl1/src/warpx/build_lassen/_deps/fetchedamrex-src/Src/Base/Parser/amrex_iparser.lex.nolint.H:2010:68: warning: implicit conversion of NULL constant to 'bool' [-Wnull-conversion] while ((yy_buffer_stack) ? yy_buffer_stack[yy_buffer_stack_top] : (__null)) { ... ``` et al.
1 parent 76d6d34 commit 07f87b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Src/Base/Parser/amrex_parser.lex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#pragma GCC diagnostic ignored "-Wfloat-conversion"
55
#pragma GCC diagnostic ignored "-Wsign-compare"
66
#elif defined(__clang__)
7+
#pragma clang diagnostic ignored "-Wnull-conversion"
78
#pragma clang diagnostic ignored "-Wnull-dereference"
89
#pragma clang diagnostic ignored "-Wunreachable-code"
910
#pragma clang diagnostic ignored "-Wfloat-conversion"

0 commit comments

Comments
 (0)