Changeset: 41ef1c1433dc for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/41ef1c1433dc Modified Files: configure.ag gdk/gdk_utils.h Branch: Jun2020 Log Message:
Changes so it compiles on Fedora 36. diffs (42 lines): diff --git a/configure.ag b/configure.ag --- a/configure.ag +++ b/configure.ag @@ -2465,6 +2465,7 @@ AH_TOP([ @%:@define _SEEN_MONETDB_CONFIG_H 1 ]) AH_BOTTOM([ +@%:@define OPENSSL_SUPPRESS_DEPRECATED @%:@ifdef INTEL_MATH_H_HACK /* see https://software.intel.com/en-us/forums/intel-c-compiler/topic/760979 */ typedef enum { diff --git a/gdk/gdk_utils.h b/gdk/gdk_utils.h --- a/gdk/gdk_utils.h +++ b/gdk/gdk_utils.h @@ -166,9 +166,11 @@ gdk_export int GDKms(void); ({ \ void *_ptr = (p); \ size_t _size = (s); \ + char _buf[12]; \ + snprintf(_buf, sizeof(_buf), "%p", _ptr); \ void *_res = GDKrealloc(_ptr, _size); \ - TRC_DEBUG(ALLOC, "GDKrealloc(%p,%zu) -> %p\n", \ - _ptr, _size, _res); \ + TRC_DEBUG(ALLOC, "GDKrealloc(%s,%zu) -> %p\n", \ + _buf, _size, _res); \ _res; \ }) #define GDKfree(p) \ @@ -237,9 +239,11 @@ gdk_export int GDKms(void); ({ \ void *_ptr = (p); \ size_t _size = (s); \ + char _buf[12]; \ + snprintf(_buf, sizeof(_buf), "%p", _ptr); \ void *_res = realloc(_ptr, _size); \ - TRC_DEBUG(ALLOC, "realloc(%p,%zu) -> %p\n", \ - _ptr, _size, _res); \ + TRC_DEBUG(ALLOC, "realloc(%s,%zu) -> %p\n", \ + _buf, _size, _res); \ _res; \ }) #define free(p) \ _______________________________________________ checkin-list mailing list -- [email protected] To unsubscribe send an email to [email protected]
