diff --git a/examples/custom_backend.c b/examples/custom_backend.c index c297efcf..7c347077 100644 --- a/examples/custom_backend.c +++ b/examples/custom_backend.c @@ -706,4 +706,4 @@ int main(int argc, char** argv) (void)argv; return 0; -} \ No newline at end of file +} diff --git a/examples/data_source_chaining.c b/examples/data_source_chaining.c index c04b4534..a66258ee 100644 --- a/examples/data_source_chaining.c +++ b/examples/data_source_chaining.c @@ -49,6 +49,8 @@ ma_decoder* g_pDecoders; static ma_data_source* next_callback_tail(ma_data_source* pDataSource) { + (void)pDataSource; /* Unused. */ + if (g_decoderCount > 0) { /* <-- We check for this in main() so should never happen. */ return NULL; } @@ -158,4 +160,4 @@ done_decoders: free(g_pDecoders); return 0; -} \ No newline at end of file +} diff --git a/examples/hilo_interop.c b/examples/hilo_interop.c index 1fde9293..4a82f89d 100644 --- a/examples/hilo_interop.c +++ b/examples/hilo_interop.c @@ -28,6 +28,8 @@ void capture_data_callback(ma_device* pDevice, void* pFramesOut, const void* pFr ma_result result; ma_uint32 framesWritten; + (void)pFramesOut; + /* We need to write to the ring buffer. Need to do this in a loop. */ framesWritten = 0; while (framesWritten < frameCount) { diff --git a/examples/resource_manager_advanced.c b/examples/resource_manager_advanced.c index d757b027..25b37e78 100644 --- a/examples/resource_manager_advanced.c +++ b/examples/resource_manager_advanced.c @@ -266,7 +266,7 @@ int main(int argc, char** argv) ma_thread_create(&jobThread, ma_thread_priority_default, 0, custom_job_thread, &resourceManager, NULL); /* Create each data source from the resource manager. Note that the caller is the owner. */ - for (iFile = 0; iFile < ma_countof(g_dataSources) && iFile < argc-1; iFile += 1) { + for (iFile = 0; iFile < (int)ma_countof(g_dataSources) && iFile < argc-1; iFile += 1) { result = ma_resource_manager_data_source_init( &resourceManager, argv[iFile+1], diff --git a/examples/simple_mixing.c b/examples/simple_mixing.c index de35863a..cd72d3b9 100644 --- a/examples/simple_mixing.c +++ b/examples/simple_mixing.c @@ -29,7 +29,7 @@ ma_bool32* g_pDecodersAtEnd; ma_event g_stopEvent; /* <-- Signaled by the audio thread, waited on by the main thread. */ -ma_bool32 are_all_decoders_at_end() +ma_bool32 are_all_decoders_at_end(void) { ma_uint32 iDecoder; for (iDecoder = 0; iDecoder < g_decoderCount; ++iDecoder) {