-Wtraditional warns for functions with ISO C declarations in gcc3.

Loads of useless bogus warnings.
This commit is contained in:
espie 2003-12-30 02:29:12 +00:00
parent 33e28d55ef
commit 39d237d1b4
2 changed files with 16 additions and 4 deletions

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_unix-gcc_mak,v 1.1 2003/12/30 02:29:12 espie Exp $
--- src/unix-gcc.mak.orig 2003-12-30 03:22:53.000000000 +0100
+++ src/unix-gcc.mak 2003-12-30 03:23:20.000000000 +0100
@@ -208,7 +208,7 @@ CCLD=$(CC)
# the 2.7.0-2.7.2 optimizer bug, either "-Dconst=" or
# "-Wcast-qual -Wwrite-strings" is automatically included.
-GCFLAGS=-Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wtraditional -fno-builtin -fno-common
+GCFLAGS=-Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common
# Define the added flags for standard, debugging, profiling
# and shared object builds.

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-src_zcolor2_c,v 1.1 2002/12/23 18:04:42 pvalchev Exp $
--- src/zcolor2.c.orig Mon Dec 23 09:59:07 2002
+++ src/zcolor2.c Mon Dec 23 09:59:08 2002
$OpenBSD: patch-src_zcolor2_c,v 1.2 2003/12/30 02:29:12 espie Exp $
--- src/zcolor2.c.orig 2002-02-22 20:46:00.000000000 +0100
+++ src/zcolor2.c 2003-12-30 03:21:23.000000000 +0100
@@ -16,6 +16,7 @@
/*$Id: patch-src_zcolor2_c,v 1.1 2002/12/23 18:04:42 pvalchev Exp $ */
/*$Id: patch-src_zcolor2_c,v 1.2 2003/12/30 02:29:12 espie Exp $ */
/* Level 2 color operators */
+#include <string.h>
#include "ghost.h"