diff --git a/src/api.cpp b/src/api.cpp index e55c7a6..c17e165 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -357,7 +357,7 @@ static int mt_sound_gc(lua_State *L) { } static int mt_sound_frames(lua_State *L) { - u64 frames = 0; + unsigned long long frames = 0; ma_result res = ma_sound_get_length_in_pcm_frames(sound_ma(L), &frames); if (res != MA_SUCCESS) { return 0; diff --git a/src/deps.cpp b/src/deps.cpp index 8947ed9..41ea2ce 100644 --- a/src/deps.cpp +++ b/src/deps.cpp @@ -91,6 +91,11 @@ #define STB_VORBIS_HEADER_ONLY #include "deps/stb_vorbis.c" +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-function" +#endif + #define MA_ENABLE_ONLY_SPECIFIC_BACKENDS #define MA_ENABLE_WASAPI #define MA_ENABLE_ALSA @@ -100,5 +105,9 @@ #define MINIAUDIO_IMPLEMENTATION #include "deps/miniaudio.h" +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + #undef STB_VORBIS_HEADER_ONLY #include "deps/stb_vorbis.c"