[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Gcc 2.95 patch for kdebase 3.3.92
From:       Leo Savernik <l.savernik () aon ! at>
Date:       2005-02-18 19:40:40
Message-ID: 200502182040.42242.l.savernik () aon ! at
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Am Freitag, 18. Februar 2005 19:59 schrieb Thiago Macieira:
> -ansi is a short form of -std=latest-ISO-std-fully-supported. That's why
> it has different behaviours in gcc 2.95 and recent 3.x.
>
> So, since we don't support C99 at all -- too many platforms without it,
> like Solaris 2.6 -- I'd say this is probably the way to go. You'll have
> to remove the -ansi switch from there, though.

Done. Ripe for commit?

mfg
 Leo

["acinclude.m4.in_2.diff" (text/x-diff)]

Index: acinclude.m4.in
===================================================================
RCS file: /home/kde/kde-common/admin/acinclude.m4.in,v
retrieving revision 2.499
diff -u -p -r2.499 acinclude.m4.in
--- acinclude.m4.in	9 Feb 2005 22:21:09 -0000	2.499
+++ acinclude.m4.in	18 Feb 2005 19:31:58 -0000
@@ -3051,7 +3051,7 @@ AC_DEFUN([AC_CHECK_COMPILERS],
         CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
         case $host in
           *-*-linux-gnu)	
-            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith \
-Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS" +     \
CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith \
                -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 \
                -D_BSD_SOURCE $CFLAGS"
             CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align \
                -Wconversion -Wchar-subscripts $CXXFLAGS"
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS \
                -Wformat-security -Wmissing-format-attribute"])
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS \
-Wformat-security -Wmissing-format-attribute"])


[Attachment #6 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic