mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-04 00:48:44 -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
|
||||
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
|
||||
# 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
|
||||
|
|
|
@ -114,10 +114,6 @@ if(ZINT_SANITIZE)
|
|||
unset(CMAKE_REQUIRED_LIBRARIES)
|
||||
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")
|
||||
# Recent clangs added deprecation warnings for `sprintf()` that are only triggered on sanitize - suppress
|
||||
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;
|
||||
if (cd == mod) cd = 0;
|
||||
|
||||
if (cd < 10) {
|
||||
hrt[p] = cd + '0';
|
||||
} else {
|
||||
hrt[p] = (cd - 10) + 'A';
|
||||
}
|
||||
hrt[p] = xtoc(cd);
|
||||
|
||||
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;
|
||||
|
||||
char binary_output[32];
|
||||
int output_length;
|
||||
int output_length = 0; /* Suppress gcc warning -Wmaybe-uninitialized */
|
||||
int has_frame_info;
|
||||
|
||||
const char long_clock_pattern[] = "1111101010101010101010101010111";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue