aboutsummaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-29 01:09:00 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-29 16:19:24 +0100
commit5557f2ca9d526874a7fc499c1068ea93628a40fa (patch)
tree62b95571fecd6508c804940be4888c1f4391309a /linux
parenta8fbf3737be9a6f5fd1d87765072292d54e54aac (diff)
downloadgnumach-5557f2ca9d526874a7fc499c1068ea93628a40fa.tar.gz
gnumach-5557f2ca9d526874a7fc499c1068ea93628a40fa.tar.bz2
gnumach-5557f2ca9d526874a7fc499c1068ea93628a40fa.zip
Enable -Wmissing-prototypes.
* Makefile.am: enable -Wmissing-prototypes * ddb/db_inout.h: Prototype kdb_kintr for entering into DDB. * ddb/db_mp.c Include ddb/db_input.h to get kdb_kintr. * i386/i386at/kd.h: Include ddb/input.h to get kdb_kintr. * linux/Makefrag.am: Disable some of the new warnings for linux drivers, otherwise we will get more and more noise. Message-Id: <Y9YNfNaYSsZJFST5@mercury.tail36e24.ts.net>
Diffstat (limited to 'linux')
-rw-r--r--linux/Makefrag.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/Makefrag.am b/linux/Makefrag.am
index 38718a3f..23384523 100644
--- a/linux/Makefrag.am
+++ b/linux/Makefrag.am
@@ -37,6 +37,10 @@ liblinux_a_CPPFLAGS = $(AM_CPPFLAGS) \
# corresponding text segment definitions, we must always optimize.
liblinux_a_CFLAGS = -O2 $(AM_CFLAGS)
+# Disable warnings that are applied to the core Mach code.
+liblinux_a_CFLAGS += -Wno-missing-prototypes -Wno-strict-prototypes \
+ -Wno-old-style-definition
+
# See <http://lists.gnu.org/archive/html/bug-hurd/2006-01/msg00148.html>.
liblinux_a_CFLAGS += \
-fno-strict-aliasing