From: <sv...@op...> - 2024-12-01 18:38:49
|
Author: manx Date: Sun Dec 1 19:38:43 2024 New Revision: 22435 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22435 Log: Merged revision(s) 22430, 22434 from trunk/OpenMPT: [Ref] examples: Silence Clang warning. ........ [Var] Run clang-format. ........ Modified: branches/OpenMPT-1.31/ (props changed) branches/OpenMPT-1.31/examples/libopenmpt_example_c_unsafe.c Modified: branches/OpenMPT-1.31/examples/libopenmpt_example_c_unsafe.c ============================================================================== --- branches/OpenMPT-1.31/examples/libopenmpt_example_c_unsafe.c Sun Dec 1 19:30:22 2024 (r22434) +++ branches/OpenMPT-1.31/examples/libopenmpt_example_c_unsafe.c Sun Dec 1 19:38:43 2024 (r22435) @@ -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 ); |