mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user