Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/xlint Deal with gcc __extension__({ }). We ass...



details:   https://anonhg.NetBSD.org/src/rev/c0a442550330
branches:  trunk
changeset: 472414:c0a442550330
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 29 12:40:39 1999 +0000

description:
Deal with gcc __extension__({ }). We assume that it returns a value 0, and
we prepend a /*NOSTRICT*/ comment to avoid constant in conditional context
warning.

diffstat:

 usr.bin/xlint/xlint/xlint.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r be396e779a7a -r c0a442550330 usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c       Thu Apr 29 11:28:42 1999 +0000
+++ b/usr.bin/xlint/xlint/xlint.c       Thu Apr 29 12:40:39 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xlint.c,v 1.10 1999/04/22 04:40:58 mrg Exp $   */
+/*     $NetBSD: xlint.c,v 1.11 1999/04/29 12:40:39 christos Exp $      */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: xlint.c,v 1.10 1999/04/22 04:40:58 mrg Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.11 1999/04/29 12:40:39 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -331,6 +331,7 @@
        appcstrg(&cflags, "-x");
        appcstrg(&cflags, "c");
        appcstrg(&cflags, "-D__attribute__(x)=");
+       appcstrg(&cflags, "-D__extension__(x)=/*NOSTRICT*/0");
        appcstrg(&cflags, "-Wp,-$");
        appcstrg(&cflags, "-Wp,-CC");
        appcstrg(&cflags, "-Wcomment");



Home | Main Index | Thread Index | Old Index