https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4e3bf252d83171f1f0ae92...
commit 4e3bf252d83171f1f0ae9260af622675e8ddd8a1 Author: William Kent wjk011@gmail.com AuthorDate: Wed Aug 23 08:37:15 2023 -0400 Commit: GitHub noreply@github.com CommitDate: Wed Aug 23 14:37:15 2023 +0200
[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()