Skip to content

Commit

Permalink
test_translator.py: disable fn ptr cast warning
Browse files Browse the repository at this point in the history
we actually want to test code of this form, so ask the C compiler to accept it
  • Loading branch information
fw-immunant committed Oct 22, 2024
1 parent 4fd5439 commit 5d58c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/test_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def _generate_cc_db(self, c_file_path: str) -> None:
compile_commands = """ \
[
{{
"arguments": [ "cc", "-D_FORTIFY_SOURCE=0",{3} "-c", {2}"{0}" ],
"arguments": [ "cc", "-Wno-incompatible-function-pointer-types", "-D_FORTIFY_SOURCE=0",{3} "-c", {2}"{0}" ],
"directory": "{1}",
"file": "{0}"
}}
Expand Down

0 comments on commit 5d58c03

Please sign in to comment.