aboutsummaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-04-08 01:03:31 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-08 10:55:59 +0200
commita096270c77b1f6461a2ef58660ad9cfa9cbb32bb (patch)
treeb9c713ad70ae6705a1dfe6d76c35c0d918515d2e /Makeconf
parent5de1b81f0bb24ba38d0a819bba9bd526863b5385 (diff)
downloadhurd-a096270c77b1f6461a2ef58660ad9cfa9cbb32bb.tar.gz
hurd-a096270c77b1f6461a2ef58660ad9cfa9cbb32bb.tar.bz2
hurd-a096270c77b1f6461a2ef58660ad9cfa9cbb32bb.zip
Further modernize Hurd code by enforcing strict prototypes and no implicit function declarations.
Most of the changes land in one of these buckets: * Removed unused declarations. * Used (void) to represent no parameters instead of () which means an undeterminate number of parameters. * Included missing header files whenever necessary (stdlib.h, sys/mman.h, etc) * Typedefed function pointers to be able to fully declare the parameter types. * Added declarations of library functions that are used elsewhere (example is libps/ps.h). * Made functions static whenever they are only used in that file. * Forwarded declarations of some methods that were made static. Message-Id: <ZDD1o7/tVYeZew+G@jupiter.tail36e24.ts.net>
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makeconf b/Makeconf
index b6acd382..c2bf9926 100644
--- a/Makeconf
+++ b/Makeconf
@@ -79,6 +79,7 @@ CPPFLAGS += $(INCLUDES) \
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
$($*-CPPFLAGS)
CFLAGS += -std=gnu99 $(gnu89-inline-CFLAGS) -Wall -Werror=old-style-definition \
+ -Werror=implicit-function-declaration -Werror=strict-prototypes \
-g -O3 -fno-strict-aliasing $($*-CFLAGS)
# Include the configure-generated file of parameters.