Skip to content

Commit e4285b5

Browse files
thesamesammark4o
authored andcommitted
opusenc: Fix -Wstrict-prototypes
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>
1 parent d85550c commit e4285b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opusenc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct OggOpusComments {
7979
};
8080

8181
/* Create a new comments object. The vendor string is optional. */
82-
OggOpusComments *ope_comments_create() {
82+
OggOpusComments *ope_comments_create(void) {
8383
OggOpusComments *c;
8484
const char *libopus_str;
8585
char vendor_str[1024];

0 commit comments

Comments
 (0)