]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove a couple more warnings
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 10 Oct 2021 18:32:44 +0000 (20:32 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 10 Oct 2021 18:32:44 +0000 (20:32 +0200)
suffix rule with dependency generates a warning
https://www.gnu.org/software/make/manual/html_node/Error-Messages.html
(bottom of page)

the other is a short initialized with an int literal that wraps to
a negative short value

none/tests/amd64/Makefile.am
none/tests/amd64/sbbmisc.c
none/tests/x86/Makefile.am
none/tests/x86/sbbmisc.c

index 790c1c04509699928ba5c0b10a18ff03db60daf3..27a244a9e53ccb4ee8109a301bb2ef1928695de6 100644 (file)
@@ -231,5 +231,5 @@ looper_CFLAGS               = $(AM_CFLAGS) @FLAG_NO_PIE@
 sbbmisc_CFLAGS         = $(AM_CFLAGS) @FLAG_NO_PIE@
 shrld_CFLAGS           = $(AM_CFLAGS) @FLAG_NO_PIE@
 
-.def.c: $(srcdir)/gen_insn_test.pl
+.def.c:
        $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@
index 1024bfd579e4ebd38253878f1721b77d19dcaa95..f82cc6ba0972751db0b4706aba8f963884b43b01 100644 (file)
@@ -369,7 +369,7 @@ int main ( void )
    sbb_ib_al();
    printf("r1 = %d %d\n", (int)out_b1, (int)out_b2);
 
-   in_w = 49999;
+   in_w = -15537; /* was 49999 but that causes a warning */
    sbb_iw_ax();
    printf("r2 = %d %d\n", (int)out_w1, (int)out_w2);
 
index 3f6ad1249e99a28f602916aa5bac64abe6646d36..3ecd1ad3c253fa74546b66e878fb4503a366471f 100644 (file)
@@ -180,5 +180,5 @@ insn_ssse3_LDADD    = -lm
 x86locked_CFLAGS       = $(AM_CFLAGS) -O
 yield_LDADD            = -lpthread
 
-.def.c: $(srcdir)/gen_insn_test.pl
+.def.c:
        $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@
index 7c4585d95785f943921be72deb36b2b053fa028e..f9e7f901ca075a7df9ad1e67e7accd0059fd27bf 100644 (file)
@@ -220,7 +220,7 @@ int main ( void )
    sbb_ib_al();
    printf("r1 = %d %d\n", (int)out_b1, (int)out_b2);
 
-   in_w = 49999;
+   in_w = -15537; /* was 49999 but that causes a warning */
    sbb_iw_ax();
    printf("r2 = %d %d\n", (int)out_w1, (int)out_w2);