From 03f1c090f6a55d44cad51a833517ba822d7656b8 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Sun, 10 Oct 2021 20:32:44 +0200 Subject: [PATCH] Remove a couple more warnings 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 | 2 +- none/tests/amd64/sbbmisc.c | 2 +- none/tests/x86/Makefile.am | 2 +- none/tests/x86/sbbmisc.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/none/tests/amd64/Makefile.am b/none/tests/amd64/Makefile.am index 790c1c0450..27a244a9e5 100644 --- a/none/tests/amd64/Makefile.am +++ b/none/tests/amd64/Makefile.am @@ -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 < $< > $@ diff --git a/none/tests/amd64/sbbmisc.c b/none/tests/amd64/sbbmisc.c index 1024bfd579..f82cc6ba09 100644 --- a/none/tests/amd64/sbbmisc.c +++ b/none/tests/amd64/sbbmisc.c @@ -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); diff --git a/none/tests/x86/Makefile.am b/none/tests/x86/Makefile.am index 3f6ad1249e..3ecd1ad3c2 100644 --- a/none/tests/x86/Makefile.am +++ b/none/tests/x86/Makefile.am @@ -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 < $< > $@ diff --git a/none/tests/x86/sbbmisc.c b/none/tests/x86/sbbmisc.c index 7c4585d957..f9e7f901ca 100644 --- a/none/tests/x86/sbbmisc.c +++ b/none/tests/x86/sbbmisc.c @@ -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); -- 2.47.2