]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Enable a few more compiler warnings.
authorFlorian Krohm <florian@eich-krohm.de>
Sat, 16 May 2015 16:17:52 +0000 (16:17 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sat, 16 May 2015 16:17:52 +0000 (16:17 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15243

Makefile.all.am
configure.ac
coregrind/m_signals.c
memcheck/tests/vbit-test/vtest.h

index 282c791c2e726c048a88ea5d5a0b2d766f11ff4a..d58754823f1f8a3ab306fc07916e90867283d757 100644 (file)
@@ -110,6 +110,9 @@ AM_CFLAGS_BASE = \
        @FLAG_W_WRITE_STRINGS@ \
        @FLAG_W_FORMAT@ \
        @FLAG_W_FORMAT_SECURITY@ \
+       @FLAG_W_IGNORED_QUALIFIERS@ \
+       @FLAG_W_MISSING_PARAMETER_TYPE@ \
+       @FLAG_W_OLD_STYLE_DECLARATION@ \
        @FLAG_FNO_STACK_PROTECTOR@ \
        @FLAG_FSANITIZE@ \
        -fno-strict-aliasing \
index d03aa5c0c4e7fc045b826523d4106d84fdbca145..7faeac2991b801fa7641f163abdb09a117639cf6 100644 (file)
@@ -1760,7 +1760,9 @@ AC_GCC_WARNING_SUBST([write-strings], [FLAG_W_WRITE_STRINGS])
 AC_GCC_WARNING_SUBST([format], [FLAG_W_FORMAT])
 AC_GCC_WARNING_SUBST([format-security], [FLAG_W_FORMAT_SECURITY])
 AC_GCC_WARNING_SUBST([cast-qual], [FLAG_W_CAST_QUAL])
-
+AC_GCC_WARNING_SUBST([old-style-declaration], [FLAG_W_OLD_STYLE_DECLARATION])
+AC_GCC_WARNING_SUBST([ignored-qualifiers], [FLAG_W_IGNORED_QUALIFIERS])
+AC_GCC_WARNING_SUBST([missing-parameter-type], [FLAG_W_MISSING_PARAMETER_TYPE])
 
 # does this compiler support -Wextra or the older -W ?
 
index 0bfdf73b33e06717f2671e8dad6de0c9436c3911..abfa0d72c44cdb13381148d45c20ea08484520cb 100644 (file)
@@ -1794,7 +1794,7 @@ static void default_action(const vki_siginfo_t *info, ThreadId tid)
    }
 
    if (core) {
-      const static struct vki_rlimit zero = { 0, 0 };
+      static const struct vki_rlimit zero = { 0, 0 };
 
       VG_(make_coredump)(tid, info, corelim.rlim_cur);
 
index e73cee0bee8872857a61c3db1f42d13c40180781..62ba126644f3f335de3f74070a5c1883aff01b3f 100644 (file)
@@ -125,7 +125,7 @@ unsigned sizeof_irtype(IRType);
 void typeof_primop(IROp, IRType *t_dst, IRType *t_arg1, IRType *t_arg2, 
                    IRType *t_arg3, IRType *t_arg4);
 
-static unsigned __inline__ bitsof_irtype(IRType type)
+static __inline__ unsigned bitsof_irtype(IRType type)
 {
    return type == Ity_I1 ? 1 : sizeof_irtype(type) * 8;
 }