Skip to content

Commit

Permalink
Fix Wstrict-prototypes warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKauffmann authored and jpfr committed Feb 25, 2024
1 parent 1a37d01 commit c947a55
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AliasList.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct AliasList
size_t size;
};

AliasList *AliasList_new()
AliasList *AliasList_new(void)
{
struct AliasList *list = (AliasList *)calloc(1, sizeof(*list));
if(!list)
Expand Down
2 changes: 1 addition & 1 deletion src/InternalRefService.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ addnewRefTypeImpl(InternalRefService *service, NL_ReferenceTypeNode *node) {
}
}

NL_ReferenceService *InternalRefService_new()
NL_ReferenceService *InternalRefService_new(void)
{
InternalRefService *service =
(InternalRefService *)calloc(1, sizeof(InternalRefService));
Expand Down
2 changes: 1 addition & 1 deletion src/PrintfLogger.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static void logStdOut(void *context, enum NodesetLoader_LogLevel level,
printf("NODESETLOADER: %s : %s\n", logLevel[level], message);
}

NodesetLoader_Logger *InternalLogger_new()
NodesetLoader_Logger *InternalLogger_new(void)
{
NodesetLoader_Logger *logger =
(NodesetLoader_Logger *)calloc(1, sizeof(NodesetLoader_Logger));
Expand Down
2 changes: 1 addition & 1 deletion src/Sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static void walk_tree(SortContext *ctx, S_Node *rootNode,
recurse_tree(ctx, rootNode->right, action);
}

SortContext *Sort_init()
SortContext *Sort_init(void)
{
SortContext *ctx = (SortContext *)calloc(1, sizeof(SortContext));
ctx->root1 = new_node(NULL);
Expand Down

0 comments on commit c947a55

Please sign in to comment.