Skip to content

Commit 2a9c619

Browse files
cgzonesjwcart2
authored andcommitted
checkpolicy: use strict function prototype for definitions
Clang 15 starts to complain about non strict function definitions: policy_define.c:4907:30: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] int define_devicetree_context() ^ void policy_define.c:5298:29: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] int define_ipv4_node_context() ^ void Signed-off-by: Christian Göttsche <[email protected]> Reviewed-by: Daniel Burgener <[email protected]> Acked-by: James Carter <[email protected]>
1 parent 1423725 commit 2a9c619

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

checkpolicy/policy_define.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4904,7 +4904,7 @@ int define_pcidevice_context(unsigned long device)
49044904
return -1;
49054905
}
49064906

4907-
int define_devicetree_context()
4907+
int define_devicetree_context(void)
49084908
{
49094909
ocontext_t *newc, *c, *l, *head;
49104910

@@ -5295,7 +5295,7 @@ int define_netif_context(void)
52955295
return 0;
52965296
}
52975297

5298-
int define_ipv4_node_context()
5298+
int define_ipv4_node_context(void)
52995299
{
53005300
char *id;
53015301
int rc = 0;

0 commit comments

Comments
 (0)