From 4e3bf252d83171f1f0ae9260af622675e8ddd8a1 Mon Sep 17 00:00:00 2001 From: William Kent Date: Wed, 23 Aug 2023 08:37:15 -0400 Subject: [PATCH] [MKISOFS] Silence prototype warnings (#5603) mkisofs and its components uses K&R-style function definitions to support very old compilers. Modern compilers consider K&R syntax to be deprecated. Clang therefore emits a large number of warnings over this. --- sdk/tools/mkisofs/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sdk/tools/mkisofs/CMakeLists.txt b/sdk/tools/mkisofs/CMakeLists.txt index 86cd3270b0b..bd25bf36403 100644 --- a/sdk/tools/mkisofs/CMakeLists.txt +++ b/sdk/tools/mkisofs/CMakeLists.txt @@ -106,4 +106,11 @@ else() # libschily implements an own printf function with support for the %r formatter. # Silence compilers checking for invalid formatting sequences. target_compile_options(libschily PRIVATE "-Wno-format") + + # mkisofs uses K&R-style function definitions to support very old compilers. + # This causes warnings with modern compilers. + target_compile_options(libmdigest PRIVATE "-Wno-deprecated-non-prototype") + target_compile_options(libschily PRIVATE "-Wno-deprecated-non-prototype") + target_compile_options(libsiconv PRIVATE "-Wno-deprecated-non-prototype") + target_compile_options(mkisofs PRIVATE "-Wno-deprecated-non-prototype") endif()