From: <sv...@op...> - 2024-12-01 18:13:31
|
Author: manx Date: Sun Dec 1 19:13:20 2024 New Revision: 22430 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22430 Log: [Ref] examples: Silence Clang warning. Modified: trunk/OpenMPT/examples/libopenmpt_example_c_unsafe.c Modified: trunk/OpenMPT/examples/libopenmpt_example_c_unsafe.c ============================================================================== --- trunk/OpenMPT/examples/libopenmpt_example_c_unsafe.c Sun Dec 1 16:55:49 2024 (r22429) +++ trunk/OpenMPT/examples/libopenmpt_example_c_unsafe.c Sun Dec 1 19:13:20 2024 (r22430) @@ -83,6 +83,9 @@ file = fopen( argv[1], "rb" ); #endif mod = openmpt_module_create2( openmpt_stream_get_file_callbacks2(), file, NULL, NULL, NULL, NULL, NULL, NULL, NULL ); +#if defined(__clang__) && defined(__clang_analyzer__) + [[clang::suppress]] +#endif fclose( file ); Pa_Initialize(); Pa_OpenDefaultStream( &stream, 0, 2, paInt16 | paNonInterleaved, SAMPLERATE, paFramesPerBufferUnspecified, NULL, NULL ); |