manual-backtrace: use proper prototypes, and make functions static
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 17 Nov 2015 15:32:43 +0000 (15:32 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 17 Nov 2015 15:32:43 +0000 (15:32 +0000)
Otherwise this will fail to compile with our default Autotools
compiler warnings.

test/manual-backtrace.c

index 3bd470b..0cc1499 100644 (file)
 
 #include <stdio.h>
 
-void test2()
+static void
+test2 (void)
 {
   _dbus_print_backtrace();
 }
 
-void test1()
+static void
+test1 (void)
 {
   test2();
 }
 
-void test()
+static void
+test (void)
 {
   test1();
 }