From 2c4a844d5989b1e860e5ed206355a62e7e04d145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Sun, 1 Dec 2024 18:39:09 +0000 Subject: [PATCH] Merged revision(s) 22430, 22434 from trunk/OpenMPT: [Ref] examples: Silence Clang warning. ........ [Var] Run clang-format. ........ git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.30@22436 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- examples/libopenmpt_example_c_unsafe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/libopenmpt_example_c_unsafe.c b/examples/libopenmpt_example_c_unsafe.c index 0d5f8e17bdb..bd1c3765ccf 100644 --- a/examples/libopenmpt_example_c_unsafe.c +++ b/examples/libopenmpt_example_c_unsafe.c @@ -61,6 +61,9 @@ int main( int argc, char * argv[] ) { 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 );