# Warnings for opus codec files

**URL:** <https://forum.juce.com/t/warnings-for-opus-codec-files/69564>\
**Category:** General JUCE discussion\
**Created:** [September 21, 2026, 8:40am UTC](https://forum.juce.com/t/warnings-for-opus-codec-files/69564 "2026-09-21T08:40:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![losslessgo](https://avatars.discourse-cdn.com/v4/letter/l/46a35a/32.png) [@losslessgo](https://forum.juce.com/u/losslessgo)\
**Post date:** [September 21, 2026, 8:40am UTC](https://forum.juce.com/t/warnings-for-opus-codec-files/69564/1 "2026-09-21T08:40:53Z")

</div>

Latest develop, clang-cl (VS2026)

1. 

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

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;

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [September 22, 2026, 1:43pm UTC](https://forum.juce.com/t/warnings-for-opus-codec-files/69564/2 "2026-09-22T13:43:00Z")

</div>

A fix for the second compiler warnings is here:

> <https://github.com/juce-framework/JUCE/commit/05b96c9997bb6c3cdb39c091a48c4c85cb40bce3>

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?

---

<div class="post-metadata">

**Author:** ![losslessgo](https://avatars.discourse-cdn.com/v4/letter/l/46a35a/32.png) [@losslessgo](https://forum.juce.com/u/losslessgo)\
**Post date:** [September 22, 2026, 3:31pm UTC](https://forum.juce.com/t/warnings-for-opus-codec-files/69564/3 "2026-09-22T15:31:02Z")

</div>

Thanks.

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