Commit 79ade7b9 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

m4/gst-error.m4: Add compiler flags to warn if declarations after statements...

m4/gst-error.m4: Add compiler flags to warn if declarations after statements or variable length arrays are used. Thes...

Original commit message from CVS:
* m4/gst-error.m4:
Add compiler flags to warn if declarations after statements or
variable length arrays are used. These are C99/GCC extensions and
are not supported by some compilers we want to support.
parent 593bb114
2008-07-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* m4/gst-error.m4:
Add compiler flags to warn if declarations after statements or
variable length arrays are used. These are C99/GCC extensions and
are not supported by some compilers we want to support.
2008-07-02 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> 2008-07-02 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
* gtk-doc-plugins.mak: * gtk-doc-plugins.mak:
......
...@@ -28,7 +28,15 @@ AC_DEFUN([AG_GST_SET_ERROR_CFLAGS], ...@@ -28,7 +28,15 @@ AC_DEFUN([AG_GST_SET_ERROR_CFLAGS],
AS_COMPILER_FLAG(-Wall, AS_COMPILER_FLAG(-Wall,
ERROR_CFLAGS="-Wall", ERROR_CFLAGS="-Wall",
ERROR_CFLAGS="") ERROR_CFLAGS="")
dnl Warn if declarations after statements are used (C99 extension)
AS_COMPILER_FLAG(-Wdeclaration-after-statement,
ERROR_CFLAGS="$ERROR_CFLAGS -Wdeclaration-after-statement")
dnl Warn if variable length arrays are used (C99 extension)
AS_COMPILER_FLAG(-Wvla,
ERROR_CFLAGS="$ERROR_CFLAGS -Wvla")
dnl if asked for, add -Werror if supported dnl if asked for, add -Werror if supported
if test "x$1" != "xno" if test "x$1" != "xno"
then then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment