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

* src/vm/Makefile
  * src/vm/vmmt/Makefile
  * src/vm/dlmalloc.c
    * In GCC builds >= 6.1 use
         #pragma GCC diagnostic ignored "-Wnull-dereference"
      instead of foringg HB_FM_STD_ALLOC
This commit is contained in:
Przemysław Czerpak
2025-01-30 11:54:03 +01:00
parent 793bd0c4c7
commit 418f1b6e46
4 changed files with 17 additions and 8 deletions

View File

@@ -7,6 +7,14 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */
2025-01-30 11:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/Makefile
* src/vm/vmmt/Makefile
* src/vm/dlmalloc.c
* In GCC builds >= 6.1 use
#pragma GCC diagnostic ignored "-Wnull-dereference"
instead of foringg HB_FM_STD_ALLOC
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"'

View File

@@ -132,10 +132,6 @@ ifneq ($(HB_MT),no)
DIRS += vmmt
endif
ifeq ($(HB_BUILD_TEST),strict)
HB_CFLAGS += -DHB_FM_STD_ALLOC
endif
include $(TOP)$(ROOT)config/lib.mk
ifneq ($(DIRS),)
include $(TOP)$(ROOT)config/dir.mk

View File

@@ -1460,6 +1460,11 @@ 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 */
#endif /* NO_MALLOC_STATS */
@@ -6058,6 +6063,10 @@ 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

@@ -85,8 +85,4 @@ LIBNAME := hbvmmt
HB_CFLAGS += -DHB_MT_VM
ifeq ($(HB_BUILD_TEST),strict)
HB_CFLAGS += -DHB_FM_STD_ALLOC
endif
include $(TOP)$(ROOT)config/lib.mk