From 5557f2ca9d526874a7fc499c1068ea93628a40fa Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 29 Jan 2023 01:09:00 -0500 Subject: 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: --- linux/Makefrag.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux') 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 . liblinux_a_CFLAGS += \ -fno-strict-aliasing -- cgit v1.2.3