Skip to content

Commit

Permalink
opusenc: Fix -Wstrict-prototypes
Browse files Browse the repository at this point in the history
In preparation for C23. Fixes the following warning with Clang 16:
```
src/opusenc.c:82:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
OggOpusComments *ope_comments_create() {
                                    ^
                                     void
```

Bug: https://bugs.gentoo.org/879701
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
  • Loading branch information
thesamesam authored and mark4o committed Dec 31, 2022
1 parent d85550c commit e4285b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opusenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct OggOpusComments {
};

/* Create a new comments object. The vendor string is optional. */
OggOpusComments *ope_comments_create() {
OggOpusComments *ope_comments_create(void) {
OggOpusComments *c;
const char *libopus_str;
char vendor_str[1024];
Expand Down

0 comments on commit e4285b5

Please sign in to comment.