CMake: disable Clang deprecations (`sprintf()') on sanitize

README: Copyright 2022 -> 2023
github: try gcc-12 for 32-bit Ubuntu
This commit is contained in:
gitlost 2023-06-12 13:42:15 +01:00
parent 607e4ed33a
commit 9a5bcdacee
3 changed files with 8 additions and 1 deletions

View File

@ -85,6 +85,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install gcc-12
run: sudo apt install -y gcc-12 g++-12
- name: Install multilibs
run: sudo apt install gcc-multilib g++-multilib

View File

@ -92,6 +92,10 @@ if(ZINT_SANITIZE)
# Gives warning on MainWindow::setupUI() and retries (& takes forever) if var-tracking-assignments enabled
add_compile_options(-fno-var-tracking-assignments)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Recent clangs added deprecation warnings for `sprintf()` that are only triggered on sanitize - suppress
add_compile_options(-W-no-deprecated-declarations)
endif()
endif()
endif()

2
README
View File

@ -40,7 +40,7 @@ Please see "ChangeLog" in the project root directory.
LICENSE
-------
Zint, libzint and Zint Barcode Studio are Copyright © 2022 Robin Stuart. All
Zint, libzint and Zint Barcode Studio are Copyright © 2023 Robin Stuart. All
historical versions are distributed under the GNU General Public License
version 3 or later. Versions 2.5 and later are released under a dual license:
the encoding library is released under the BSD (3 clause) license whereas the