Warnings for opus codec files

Latest develop, clang-cl (VS2026)

JUCE\modules\juce_audio_formats/codecs/opus/opusfile/src/stream.c(263,10): warning: ‘WIN32_LEAN_AND_MEAN’ macro redefined [-Wmacro-redefined]
263 | # define WIN32_LEAN_AND_MEAN
| ^
(97,9): note: previous definition is here
97 | #define WIN32_LEAN_AND_MEAN 1

JUCE\modules\juce_audio_formats/codecs/opus/opusfile/src/http.c(3471,31): warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
3471 | request=va_arg(_ap,char *)-(char *)NULL;

A fix for the second compiler warnings is here:

I was unable to reproduce the first, and there’s no file reference for the previous definition. Is this something you can reproduce in one of the projects included with JUCE?

1 Like

Thanks.

As for the second one, I can’t reproduce it with examples, but it’s suppressed now anyway.