From c69f254b29ce90911261c2ec1758179917286254 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 13 Feb 2024 03:27:34 -0800 Subject: [PATCH] Fix 2000/natori/Makefile - wrong variable used The -Wno-foo options were in the CDEFINE variable which although works it is not congruent with the other Makefiles and it is slightly more confusing (even though not confusing). --- 2000/natori/Makefile | 6 +++--- thanks-for-help.md | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/2000/natori/Makefile b/2000/natori/Makefile index 3cc1c13af..7be84187b 100644 --- a/2000/natori/Makefile +++ b/2000/natori/Makefile @@ -38,7 +38,8 @@ include ../../var.mk # Common C compiler warnings to silence # -CSILENCE= +CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \ + -Wno-int-conversion -Wno-pointer-to-int-cast -Wno-unused-parameter # Common C compiler warning flags # @@ -57,8 +58,7 @@ ARCH= # Defines that are needed to compile # -CDEFINE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \ - -Wno-int-conversion -Wno-pointer-to-int-cast -Wno-unused-parameter +CDEFINE= # Include files that are needed to compile # diff --git a/thanks-for-help.md b/thanks-for-help.md index 8e34cc346..37f2d72f4 100644 --- a/thanks-for-help.md +++ b/thanks-for-help.md @@ -2557,6 +2557,10 @@ one-liner but rather a small program. At the same point Cody made the code itself a one-line like the code is in the original entry. Now it looks much more like the original entry but with the two fixes. +Finally Cody fixed the Makefile that had the `-Wno-foo` options in the `CDEFINE` +variable which although works it is incongruent with the other Makefiles and is +more confusing (even if not confusing). + ## [2000/primenum](/2000/primenum/primenum.c) ([README.md](/2000/primenum/README.md]))