Skip to content

Commit

Permalink
test/metal-test.h: Fix warning -Wstrict-prototypes
Browse files Browse the repository at this point in the history
Small change to solve the warning: function declaration isn't a
prototype when compiling with -Wstrict-prototypes.
  • Loading branch information
Novembre-Calabretta committed Apr 27, 2024
1 parent 959fddb commit 4f6124f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/metal-test.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern void metal_add_test_case(struct metal_test_case *test_case);


#define METAL_ADD_TEST(func) \
__attribute__ ((constructor)) static void metal_test_##func() { \
__attribute__ ((constructor)) static void metal_test_##func(void) { \

Check failure on line 36 in test/metal-test.h

View workflow job for this annotation

GitHub Actions / compliance review

OPEN_BRACE

test/metal-test.h:36 open brace '{' following function declarations go on the next line
static struct metal_test_case metal_test_##func = { \
.name = #func, \
.test = func, \
Expand Down

0 comments on commit 4f6124f

Please sign in to comment.