]> sourceware.org Git - systemtap.git/commitdiff
listing_mode.c test case: eliminate gcc5 warnings
authorFrank Ch. Eigler <fche@redhat.com>
Sun, 15 Feb 2015 02:06:14 +0000 (21:06 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Sun, 15 Feb 2015 02:06:14 +0000 (21:06 -0500)
testsuite/systemtap.base/listing_mode.c

index 6ce5744c8b905f57c05de22c8a7895c6a366f906..47ecdbcaed8c405d500691fc30c524a02f4afb63 100644 (file)
@@ -1,11 +1,12 @@
 #include "sys/sdt.h"
-#include "stdio.h"
+#include <stdio.h>
+#include <unistd.h>
 
 #ifdef LISTING_MODE_MAIN
 
 int globalvar = 1;
 
-extern libfoo(int lf);
+extern int libfoo(int lf);
 
 __attribute__((always_inline))
 inline int inln(int i) {
@@ -34,6 +35,7 @@ main_label:
    STAP_PROBE1(main, mark, globalvar);
    while (1) {sleep(5000);}
    return 0;
+   if (0) goto main_label;
 }
 
 #elif LISTING_MODE_LIB
This page took 0.029694 seconds and 5 git commands to generate.