From: Florian Weimer Date: Sat, 22 Apr 2023 19:37:09 +0000 (+0200) Subject: testsuite: Avoid C99 compatibility issues in run-native-test.sh X-Git-Tag: elfutils-0.190~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51373aa9a77ef53d237edc1af664efcbb49f1bf5;p=thirdparty%2Felfutils.git testsuite: Avoid C99 compatibility issues in run-native-test.sh Include for the pause function, and add the return type of main. Avoids an implicit function declaration and implicit int. Signed-off-by: Florian Weimer --- diff --git a/tests/run-native-test.sh b/tests/run-native-test.sh index d19007f2f..042a51c6c 100755 --- a/tests/run-native-test.sh +++ b/tests/run-native-test.sh @@ -27,7 +27,8 @@ # in all builds. tempfiles native.c native -echo 'main () { while (1) pause (); }' > native.c +printf '#include \nint main (void) { while (1) pause (); }\n' \ + > native.c native=0 kill_native()