mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-07 01:51:29 -04:00
DXFILMEDGE: suppress gcc warning -Wmaybe-uninitialized
CMakeFile: don't disable -fno-var-tracking-assignments for gcc github: try installing de_DE.UTF-8 locale (for test_filemem)
This commit is contained in:
parent
f9878700ee
commit
33135fc146
4 changed files with 6 additions and 10 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -24,6 +24,10 @@ jobs:
|
||||||
- name: Install libpng-dev
|
- name: Install libpng-dev
|
||||||
run: sudo apt-get install libpng-dev
|
run: sudo apt-get install libpng-dev
|
||||||
|
|
||||||
|
- name: Install locale
|
||||||
|
shell: bash
|
||||||
|
run: sudo locale-gen de_DE.UTF-8 && sudo update-locale
|
||||||
|
|
||||||
- name: Create Build Environment
|
- name: Create Build Environment
|
||||||
# Some projects don't allow in-source building, so create a separate build directory
|
# Some projects don't allow in-source building, so create a separate build directory
|
||||||
# We'll use this as our working directory for all subsequent commands
|
# We'll use this as our working directory for all subsequent commands
|
||||||
|
|
|
@ -114,10 +114,6 @@ if(ZINT_SANITIZE)
|
||||||
unset(CMAKE_REQUIRED_LIBRARIES)
|
unset(CMAKE_REQUIRED_LIBRARIES)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(NOT ZINT_DEBUG AND CMAKE_C_COMPILER_ID MATCHES "GNU")
|
|
||||||
# Gives warning on MainWindow::setupUI() and retries (& takes forever) if var-tracking-assignments enabled
|
|
||||||
add_compile_options(-fno-var-tracking-assignments)
|
|
||||||
endif()
|
|
||||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||||
# Recent clangs added deprecation warnings for `sprintf()` that are only triggered on sanitize - suppress
|
# Recent clangs added deprecation warnings for `sprintf()` that are only triggered on sanitize - suppress
|
||||||
add_compile_options(-Wno-deprecated-declarations)
|
add_compile_options(-Wno-deprecated-declarations)
|
||||||
|
|
|
@ -188,11 +188,7 @@ INTERNAL int dpd(struct zint_symbol *symbol, unsigned char source[], int length)
|
||||||
cd = mod + 1 - cd;
|
cd = mod + 1 - cd;
|
||||||
if (cd == mod) cd = 0;
|
if (cd == mod) cd = 0;
|
||||||
|
|
||||||
if (cd < 10) {
|
hrt[p] = xtoc(cd);
|
||||||
hrt[p] = cd + '0';
|
|
||||||
} else {
|
|
||||||
hrt[p] = (cd - 10) + 'A';
|
|
||||||
}
|
|
||||||
|
|
||||||
hrt_cpy_nochk(symbol, hrt, p + 1);
|
hrt_cpy_nochk(symbol, hrt, p + 1);
|
||||||
|
|
||||||
|
|
|
@ -258,7 +258,7 @@ INTERNAL int dxfilmedge(struct zint_symbol *symbol, unsigned char source[], int
|
||||||
int error_number;
|
int error_number;
|
||||||
|
|
||||||
char binary_output[32];
|
char binary_output[32];
|
||||||
int output_length;
|
int output_length = 0; /* Suppress gcc warning -Wmaybe-uninitialized */
|
||||||
int has_frame_info;
|
int has_frame_info;
|
||||||
|
|
||||||
const char long_clock_pattern[] = "1111101010101010101010101010111";
|
const char long_clock_pattern[] = "1111101010101010101010101010111";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue