From 5daef09d458254d24c249ba79a54f088775384e3 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 9 May 2000 01:54:35 +0000 Subject: [PATCH] use EXT_CFLAGS to pass -Wno-builtin to gcc, allowing missing prototypes for functions that have builtins to be properly noticed. --- util/check-sources.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/check-sources.pl b/util/check-sources.pl index be7f4b401c..66423633da 100644 --- a/util/check-sources.pl +++ b/util/check-sources.pl @@ -249,6 +249,12 @@ comment on the same line as the #include. ================================================================ EOF + # XXX gcc-specific + # Disable builtin memcmp/memcpy/strcmp/strcpy/etc. When they are + # available, gcc won't warn about the lack of a prototype in a header + # file. + $ENV{'EXT_CFLAGS'} = "-Wno-builtin"; + do_dir("", "."); }