From e4285b5e8c20a06746f656102c5be8aef83f7ccb Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 22 Nov 2022 03:00:38 +0000 Subject: [PATCH] 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 Signed-off-by: Mark Harris --- src/opusenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opusenc.c b/src/opusenc.c index 3b5fcff..6ad3d91 100644 --- a/src/opusenc.c +++ b/src/opusenc.c @@ -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];