shithub: opusfile

Download patch

ref: ae4968d1054c8099302af2107930fd096c7ec6d2
parent: ccdef60e914fb336c7bddc5c8895b93ade3e3289
author: Mark Harris <mark.hsj@gmail.com>
date: Fri May 1 19:02:45 EDT 2020

Silence clang null pointer arithmetic warning

--- a/include/opusfile.h
+++ b/include/opusfile.h
@@ -698,7 +698,7 @@
 #define OP_HTTP_PROXY_PASS_REQUEST            (6720)
 #define OP_GET_SERVER_INFO_REQUEST            (6784)
 
-#define OP_URL_OPT(_request) ((_request)+(char *)0)
+#define OP_URL_OPT(_request) ((char *)(_request))
 
 /*These macros trigger compilation errors or warnings if the wrong types are
    provided to one of the URL options.*/