2025-01-30 04:23 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* contrib/hbzebra/datamtrx.c
    * added '#pragma GCC diagnostic ignored "-Warray-bounds"'
      to disable GCC 12, 13 and 14 false warnings about array bounds for
      static constant data

  * contrib/hbzebra/hbzebra.hbp
    * removed -Wno-error=array-bounds C compiler parameter used in all GCC
      builds
This commit is contained in:
Przemysław Czerpak
2025-01-30 04:23:31 +01:00
parent db3379db21
commit 793bd0c4c7
3 changed files with 14 additions and 3 deletions

View File

@@ -66,6 +66,10 @@
#include "hbzebra.h"
#if defined( __GNUC__ ) && __GNUC__ >= 12 && __GNUC__ <= 14
/* workaround for GCC bug */
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
/* Special CodeWords */
#define PADDING 129

View File

@@ -23,6 +23,3 @@ msi.c
pdf417.c
datamtrx.c
qrcode.c
# GCC 13, 14 reports false warnings about array bounds for static constant data
-cflag=-Wno-error=array-bounds{allgcc&HB_BUILD_TEST='strict'}