shithub: libopusenc

Download patch

ref: e4285b5e8c20a06746f656102c5be8aef83f7ccb
parent: d85550c9470c30a8198d8a8075e04296ddd80e9b
author: Sam James <[email protected]>
date: Mon Nov 21 22:00:38 EST 2022

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 <[email protected]>
Signed-off-by: Mark Harris <[email protected]>

--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -79,7 +79,7 @@
 };
 
 /* 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];