[Gstreamer-bugs] [Bug 89622] Changed - [BUILD] -Wall and -Werror break non gcc compilers
bugzilla-daemon at widget.gnome.org
bugzilla-daemon at widget.gnome.org
Thu Nov 28 06:40:43 PST 2002
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=89622
Changed by brian.cameron at ireland.sun.com.
--- shadow/89622 Thu Nov 28 09:32:28 2002
+++ shadow/89622.tmp.2575 Thu Nov 28 09:40:43 2002
@@ -103,6 +103,35 @@
<laca> -Wall: the forte default is to show all warnings
<laca> -Werror: -errwarn=<t> Treats warnings specified by tags
t(%none, %all, <tag list>) as errors
------- Additional Comments From Uraeus at linuxrising.org 2002-11-28 09:31 -------
*** Bug 99816 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From brian.cameron at ireland.sun.com 2002-11-28 09:40 -------
+
+I'm copying this information from my other bug, which was marked
+as a duplicate of this one. Following is a technique that glib
+uses to only include -Wall and -Werror if gcc is the compiler being
+used:
+
+
+--glib example start--
+
+ if test "x$GCC" = "xyes"; then
+ case " $CFLAGS " in
+ *[[\ \ ]]-Wall[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -Wall" ;;
+ esac
+
+ if test "x$enable_ansi" = "xyes"; then
+ case " $CFLAGS " in
+ *[[\ \ ]]-ansi[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -ansi" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[[\ \ ]]-pedantic[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -pedantic" ;;
+ esac
+ fi
+ fi
More information about the Gstreamer-bugs
mailing list