Skip to content

Commit

Permalink
[MKISOFS] Silence prototype warnings (reactos#5603)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wjk authored Aug 23, 2023
1 parent 21925d9 commit 4e3bf25
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sdk/tools/mkisofs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 4e3bf25

Please sign in to comment.