From: <sv...@op...> - 2024-12-01 18:39:21
|
Author: manx Date: Sun Dec 1 19:39:09 2024 New Revision: 22436 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22436 Log: Merged revision(s) 22430, 22434 from trunk/OpenMPT: [Ref] examples: Silence Clang warning. ........ [Var] Run clang-format. ........ Modified: branches/OpenMPT-1.30/ (props changed) branches/OpenMPT-1.30/examples/libopenmpt_example_c_unsafe.c Modified: branches/OpenMPT-1.30/examples/libopenmpt_example_c_unsafe.c ============================================================================== --- branches/OpenMPT-1.30/examples/libopenmpt_example_c_unsafe.c Sun Dec 1 19:38:43 2024 (r22435) +++ branches/OpenMPT-1.30/examples/libopenmpt_example_c_unsafe.c Sun Dec 1 19:39:09 2024 (r22436) @@ -61,6 +61,9 @@ file = fopen( argv[1], "rb" ); #endif mod = openmpt_module_create2( openmpt_stream_get_file_callbacks(), 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 ); |