Skip to content

Commit 0955170

Browse files
rothmichaelsclaude
andcommitted
fix: remove deprecated mp-units/format.h includes from audio examples
The audio examples were including the deprecated mp-units/format.h header which generates deprecation warnings that are treated as errors with -Werror. Removed the deprecated includes and ensured proper headers are included. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent afacfb2 commit 0955170

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/audio/0-wrapping_unsafe_apis.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ import std;
2929
#ifdef MP_UNITS_MODULES
3030
import mp_units;
3131
#else
32-
#include <mp-units/format.h>
32+
#include <mp-units/math.h>
33+
#include <mp-units/systems/si.h>
3334
#endif
3435

3536
#include "third_party_audio_api.h"

example/audio/1-oscillator.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import std;
3232
#ifdef MP_UNITS_MODULES
3333
import mp_units;
3434
#else
35-
#include <mp-units/format.h>
3635
#include <mp-units/math.h>
3736
#include <mp-units/systems/angular.h>
3837
#include <mp-units/systems/isq.h>

0 commit comments

Comments
 (0)