Skip to content

Commit 97d3306

Browse files
committed
Fix all empty function prototypes for C23
1 parent 0919ccf commit 97d3306

16 files changed

Lines changed: 109 additions & 95 deletions

File tree

basic_example/basic_example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ int rocket_init(const char* prefix) {
9898

9999
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
100100

101-
static int rocket_update() {
101+
static int rocket_update(void) {
102102
int row = 0;
103103

104104
if (audio_is_playing)
@@ -124,7 +124,7 @@ static const struct sync_track* s_tracks[sizeof_array(s_trackNames)];
124124

125125
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
126126

127-
int main() {
127+
int main(void) {
128128
int i;
129129

130130
if (!rocket_init("data/sync"))

emgui/include/emgui/GFXBackend.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
#include "Types.h"
55

6-
bool EMGFXBackend_create();
7-
bool EMGFXBackend_destroy();
6+
bool EMGFXBackend_create(void);
7+
bool EMGFXBackend_destroy(void);
88
void EMGFXBackend_updateViewPort(int width, int height);
9-
void EMGFXBackend_render();
9+
void EMGFXBackend_render(void);
1010

1111
uint64_t EMGFXBackend_createFontTexture(void* imageBuffer, int w, int h);
1212
uint64_t EMGFXBackend_createTexture(void* imageBuffer, int w, int h, int comp);

src/Commands.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static int countEntriesInList(CommandList* list) {
7474

7575
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7676

77-
int Commands_undoCount() {
77+
int Commands_undoCount(void) {
7878
return countEntriesInList(&s_undoStack);
7979
}
8080

@@ -121,7 +121,7 @@ void Commands_beginMulti(const char* name) {
121121

122122
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
123123

124-
void Commands_endMulti() {
124+
void Commands_endMulti(void) {
125125
Command* command;
126126

127127
// Check if any command was added during multi command
@@ -586,7 +586,7 @@ void Commands_toggleMute(struct Track* track, struct sync_track* syncTrack, int
586586

587587
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
588588

589-
void Commands_undo() {
589+
void Commands_undo(void) {
590590
Command* command;
591591

592592
if (CommandList_isEmpty(&s_undoStack)) {
@@ -606,7 +606,7 @@ void Commands_undo() {
606606

607607
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
608608

609-
void Commands_redo() {
609+
void Commands_redo(void) {
610610
Command* command;
611611

612612
if (CommandList_isEmpty(&s_redoStack))

src/Commands.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ void Commands_init(struct sync_track** syncTracks, struct TrackData* trackData);
1313

1414
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1515

16-
int Commands_needsSave();
16+
int Commands_needsSave(void);
1717

18-
void Commands_undo();
19-
void Commands_redo();
18+
void Commands_undo(void);
19+
void Commands_redo(void);
2020

2121
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2222

@@ -31,7 +31,7 @@ void Commands_clearLoopmarks(struct TrackData* trackData);
3131
void Commands_updateKey(int track, struct track_key* key);
3232
void Commands_setSelection(struct TrackViewInfo* viewInfo, int startTrack, int endTrack, int startRow, int endRow);
3333
void Commands_beginMulti(const char* name); // Used (for example) when changing many value at the same time
34-
void Commands_endMulti();
35-
int Commands_undoCount();
34+
void Commands_endMulti(void);
35+
int Commands_undoCount(void);
3636

3737
#endif

0 commit comments

Comments
 (0)