From 8f7193d1134b4c189588812ee4466aa861cbc374 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 21 Aug 2024 09:50:56 -0700 Subject: [PATCH 1/2] Disable useless and annoying warning in 2012/kang The warning -Wmisleading-indentation is nothing but style policing, can causes unnecessary edits to working code which is error prone itself and even beginner C programmers can parse it as it's one of the first things learnt, blocks of code. And if someone can't perhaps they should be using another language or not programming at all. As for the IOCCC it would be considered a good thing to be 'misleading' except that it's not misleading to anyone participating in the IOCCC and certainly not to the judges if it even is to anyone else. --- 2012/kang/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2012/kang/Makefile b/2012/kang/Makefile index f1278c769..8128415a1 100644 --- a/2012/kang/Makefile +++ b/2012/kang/Makefile @@ -40,7 +40,7 @@ include ../../var.mk # CSILENCE= -Wno-bitwise-op-parentheses -Wno-error \ -Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion \ - -Wno-pointer-to-int-cast -Wno-deprecated-non-prototype + -Wno-pointer-to-int-cast -Wno-deprecated-non-prototype -Wno-misleading-indentation # Attempt to silence unknown warnings # From ec44944bd02fe396b277053d52ad7a03bdc09b0d Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 21 Aug 2024 09:57:46 -0700 Subject: [PATCH 2/2] Disable missed warning in 2012/kang --- 2012/kang/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/2012/kang/Makefile b/2012/kang/Makefile index 8128415a1..f2ed28597 100644 --- a/2012/kang/Makefile +++ b/2012/kang/Makefile @@ -40,7 +40,8 @@ include ../../var.mk # CSILENCE= -Wno-bitwise-op-parentheses -Wno-error \ -Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion \ - -Wno-pointer-to-int-cast -Wno-deprecated-non-prototype -Wno-misleading-indentation + -Wno-pointer-to-int-cast -Wno-deprecated-non-prototype -Wno-misleading-indentation \ + -Wno-unsafe-buffer-usage # Attempt to silence unknown warnings #