Skip to content

Commit 894f522

Browse files
issue-167 (ros2#172)
Explicitly added void to change the function to a function with prototype. See https://discourse.llvm.org/t/rfc-enabling-wstrict-prototypes-by-default-in-c/60521 See https://reviews.llvm.org/D122895 Fixes: ros2#167 Signed-off-by: Sebastian Freitag <[email protected]>
1 parent 889c10d commit 894f522

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/dummy_shared_library/dummy_shared_library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "./dummy_shared_library.h" // NOLINT
1616

17-
void print_name()
17+
void print_name(void)
1818
{
1919
printf("print_name\n");
2020
}

test/dummy_shared_library/dummy_shared_library.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
#include <stdio.h>
2929

3030
DUMMY_SHARED_LIBRARY_PUBLIC
31-
void print_name();
31+
void print_name(void);
3232

3333
#endif // DUMMY_SHARED_LIBRARY__DUMMY_SHARED_LIBRARY_H_

0 commit comments

Comments
 (0)