[Mesa-dev] [PATCH 3/4] configure.ac: warn when declarations follow code
Jose Fonseca
jfonseca at vmware.com
Wed Jun 26 14:18:24 PDT 2013
The other patches look fine though.
Jose
----- Original Message -----
> Several components are never expected to be built with MSVC (glx, most dri
> drivers), so this would put (most likely undesired) burden on those
> maintainers.
>
> I suspect we'll need to do this on a per directory basis...
>
> Jose
>
> ----- Original Message -----
> > Since it's an error with MSVC.
> > ---
> > configure.ac | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/configure.ac b/configure.ac
> > index 6832b0d..16f11aa 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -209,6 +209,11 @@ if test "x$GCC" = xyes; then
> > # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
> > CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -fno-builtin-memcmp"
> > CFLAGS="$CFLAGS -fno-builtin-memcmp"
> > +
> > + # Warn when declarations are found after code (an error with MSVC)
> > + # Available in gcc 3.0 and later
> > + CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -Wdeclaration-after-statement"
> > + CFLAGS="$CFLAGS -Wdeclaration-after-statement"
> > fi
> > if test "x$GXX" = xyes; then
> > CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -Wall"
> > --
> > 1.7.10.4
> >
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> >
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list