mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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:
parent
21925d935c
commit
4e3bf252d8
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue