X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-elf-binary%2Fuserspace-probe-elf-binary.c;h=7a5040051e7314e137b7e22d30ce56f853af0574;hb=HEAD;hp=d4304541d34a7a451f8d001857aea304ef96ecd4;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;p=lttng-tools.git diff --git a/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c b/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c index d4304541d..7a5040051 100644 --- a/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c +++ b/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c @@ -8,13 +8,13 @@ #include "foo.h" volatile int not_a_function = 0; -void __attribute__ ((noinline)) test_function(); -void __attribute__ ((noinline)) test_function() +void __attribute__((noinline)) test_function(void); +void __attribute__((noinline)) test_function(void) { not_a_function += 1; } -int main(int argc, char *argv[]) +int main(void) { test_function(); dynamic_symbol(42);