[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:
William Kent 2023-08-23 08:37:15 -04:00 committed by GitHub
parent 21925d935c
commit 4e3bf252d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()