mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: Silence warning for generated code when compiling with clang.
This commit is contained in:
parent
8cf0be6d0f
commit
6c70f7851b
1 changed files with 6 additions and 0 deletions
|
@ -161,6 +161,12 @@ int compile(const char* filename)
|
||||||
out_h.println("#include \"binpac.h\"");
|
out_h.println("#include \"binpac.h\"");
|
||||||
out_h.println("");
|
out_h.println("");
|
||||||
|
|
||||||
|
out_cc.println("");
|
||||||
|
out_cc.println("#ifdef __clang__");
|
||||||
|
out_cc.println("#pragma clang diagnostic ignored \"-Wparentheses-equality\"");
|
||||||
|
out_cc.println("#endif");
|
||||||
|
out_cc.println("");
|
||||||
|
|
||||||
out_cc.println("#include \"%s.h\"\n", basename.c_str());
|
out_cc.println("#include \"%s.h\"\n", basename.c_str());
|
||||||
|
|
||||||
Decl::ProcessDecls(&out_h, &out_cc);
|
Decl::ProcessDecls(&out_h, &out_cc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue