mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 11:53:32 +00: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.
|
# libschily implements an own printf function with support for the %r formatter.
|
||||||
# Silence compilers checking for invalid formatting sequences.
|
# Silence compilers checking for invalid formatting sequences.
|
||||||
target_compile_options(libschily PRIVATE "-Wno-format")
|
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()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user