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

* contrib/hbcurl/core.c
    ! casting

  * include/hbcompdf.h
    * removed unnecassary parenthesies and indenting

  * src/rtl/errint.c
    * added
         #pragma GCC diagnostic ignored "-Wnull-dereference"

  * src/vm/dlmalloc.c
    - removed
         #pragma GCC diagnostic ignored "-Wnull-dereference"

  * src/vm/fm.c
    + added
         #pragma clang diagnostic ignored "-Wgnu-null-pointer-arithmetic"
         #pragma GCC diagnostic ignored "-Warray-bounds"
         #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
         #pragma GCC diagnostic ignored "-Walloc-size"
This commit is contained in:
Przemysław Czerpak
2025-01-30 16:19:59 +01:00
parent 418f1b6e46
commit 06d4e4c6ae
6 changed files with 58 additions and 20 deletions

View File

@@ -62,12 +62,17 @@ void hb_errInternal( HB_ERRCODE errCode, const char * szText, const char * szPar
#if defined( _MSC_VER ) && _MSC_VER >= 1800
# pragma warning(push)
# pragma warning(disable:6011)
#elif defined( HB_GCC_HAS_DIAG ) && ( HB_GCC_VER >= 601 )
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wnull-dereference"
#endif
int * pGPF = NULL;
*pGPF = 0;
*( --pGPF ) = 0;
#if defined( _MSC_VER ) && _MSC_VER >= 1800
# pragma warning(pop)
#elif defined( HB_GCC_HAS_DIAG ) && ( HB_GCC_VER >= 601 )
# pragma GCC diagnostic pop
#endif
}

View File

@@ -1459,11 +1459,6 @@ DLMALLOC_EXPORT int mspace_mallopt(int, int);
#ifdef _MSC_VER
#pragma warning( disable : 4146 ) /* no "unsigned" warnings */
#endif /* _MSC_VER */
#if defined(__GNUC__) && \
(__GNUC__ > 6 || (__GNUC__ == 6 && __GNUC_MINOR__ >= 1))
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnull-dereference"
#endif
#if !NO_MALLOC_STATS
#include <stdio.h> /* for printing in malloc_stats */
@@ -6063,10 +6058,6 @@ int mspace_mallopt(int param_number, int value) {
#endif /* MSPACES */
#if defined(__GNUC__) && \
(__GNUC__ > 6 || (__GNUC__ == 6 && __GNUC_MINOR__ >= 1))
#pragma GCC diagnostic pop
#endif
/* -------------------- Alternative MORECORE functions ------------------- */

View File

@@ -188,7 +188,23 @@
# if defined( HB_OS_WIN_64 )
# pragma warning( disable : 4267 )
# endif
# elif defined( __MINGW32__ )
# elif defined( __clang__ ) && defined( __clang_major__ ) && __clang_major__ >= 13
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wunused-but-set-variable"
# if __clang_major__ >= 15
# pragma clang diagnostic ignored "-Wgnu-null-pointer-arithmetic"
# endif
# elif defined( __GNUC__ ) && ( __GNUC__ > 6 || ( __GNUC__ == 6 && __GNUC_MINOR__ >= 1 ) )
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Warray-bounds"
# if __GNUC__ >= 11
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
# endif /* __GNUC__ >= 11 */
# if __GNUC__ >= 14
# pragma GCC diagnostic ignored "-Walloc-size"
# endif /* __GNUC__ >= 14 */
# endif
# if defined( __MINGW32__ )
# if ! defined( USE_DL_PREFIX ) && ! defined( HB_FM_DLMT_ALLOC )
# define USE_DL_PREFIX
# endif
@@ -224,6 +240,10 @@
# endif
# elif defined( _MSC_VER )
# pragma warning( pop )
# elif defined( __clang__ ) && defined( __clang_major__ ) && __clang_major__ >= 13
# pragma clang diagnostic pop
# elif defined( __GNUC__ ) && ( __GNUC__ > 6 || ( __GNUC__ == 6 && __GNUC_MINOR__ >= 1 ) )
# pragma GCC diagnostic pop
# endif
# if defined( HB_FM_DLMT_ALLOC )
# define malloc( n ) mspace_malloc( hb_mspace(), ( n ) )