From e0ac4c3bf9803d4aa9104022f8c0770fcf10e96c Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sat, 30 Dec 2023 15:32:07 +0300 Subject: [PATCH] bytebeat_compiler.py: add flag `-Wno-dangling-else` --- bytebeat_compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index 022090e..5075eb0 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -27,7 +27,7 @@ PATHS["path_to_fwrite_le"] = PATHS["src_dir"] + PATHS["fwrite_le"] # Default parameters DEFAULT_PARAMETERS = { "CC": "gcc", - "CFLAGS": "-Ofast -Wall -Wextra -Wpedantic -Wno-unused-variable -Wno-unused-but-set-variable", + "CFLAGS": "-Ofast -Wall -Wextra -Wpedantic -Wno-unused-variable -Wno-unused-but-set-variable -Wno-dangling-else", "INPUT_FILE": PATHS["substitute"], "OUTPUT_FILE": PATHS["output"] }