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:
@@ -7,6 +7,28 @@
|
|||||||
Entries may not always be in chronological/commit order.
|
Entries may not always be in chronological/commit order.
|
||||||
See license at the end of file. */
|
See license at the end of file. */
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
2025-01-30 11:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
2025-01-30 11:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||||
* src/vm/Makefile
|
* src/vm/Makefile
|
||||||
* src/vm/vmmt/Makefile
|
* src/vm/vmmt/Makefile
|
||||||
|
|||||||
@@ -2580,7 +2580,7 @@ HB_FUNC( CURL_WS_SEND )
|
|||||||
{
|
{
|
||||||
if( PHB_CURL_is( 1 ) )
|
if( PHB_CURL_is( 1 ) )
|
||||||
{
|
{
|
||||||
CURLcode res = HB_CURLE_ERROR;
|
CURLcode res = ( CURLcode ) HB_CURLE_ERROR;
|
||||||
size_t sent = 0;
|
size_t sent = 0;
|
||||||
|
|
||||||
#if LIBCURL_VERSION_NUM >= 0x075600
|
#if LIBCURL_VERSION_NUM >= 0x075600
|
||||||
@@ -2608,7 +2608,7 @@ HB_FUNC( CURL_WS_RECV )
|
|||||||
{
|
{
|
||||||
if( PHB_CURL_is( 1 ) && HB_ISBYREF( 2 ) )
|
if( PHB_CURL_is( 1 ) && HB_ISBYREF( 2 ) )
|
||||||
{
|
{
|
||||||
CURLcode res = HB_CURLE_ERROR;
|
CURLcode res = ( CURLcode ) HB_CURLE_ERROR;
|
||||||
size_t recv = 0;
|
size_t recv = 0;
|
||||||
|
|
||||||
#if LIBCURL_VERSION_NUM >= 0x075600
|
#if LIBCURL_VERSION_NUM >= 0x075600
|
||||||
@@ -2847,7 +2847,7 @@ HB_FUNC( CURL_MULTI_INFO_READ )
|
|||||||
|
|
||||||
for( i = 1; i <= handles_count; i++ )
|
for( i = 1; i <= handles_count; i++ )
|
||||||
{
|
{
|
||||||
void ** ph = hb_arrayGetPtrGC( pHandles, i, &s_gcCURLFuncs );
|
void ** ph = ( void ** ) hb_arrayGetPtrGC( pHandles, i, &s_gcCURLFuncs );
|
||||||
if( ph && *ph )
|
if( ph && *ph )
|
||||||
{
|
{
|
||||||
PHB_CURL hbcurl = ( PHB_CURL ) *ph;
|
PHB_CURL hbcurl = ( PHB_CURL ) *ph;
|
||||||
|
|||||||
@@ -74,13 +74,13 @@ struct _HB_HCLASS; /* forward declaration */
|
|||||||
/* Declared Function/Method support structure */
|
/* Declared Function/Method support structure */
|
||||||
typedef struct _HB_HDECLARED
|
typedef struct _HB_HDECLARED
|
||||||
{
|
{
|
||||||
const char * szName; /* the name of the symbol */
|
const char * szName; /* the name of the symbol */
|
||||||
HB_BYTE cType;
|
HB_BYTE cType;
|
||||||
HB_USHORT iParamCount;
|
HB_USHORT iParamCount;
|
||||||
HB_BYTE * cParamTypes;
|
HB_BYTE * cParamTypes;
|
||||||
struct _HB_HCLASS * pClass;
|
struct _HB_HCLASS * pClass;
|
||||||
struct _HB_HCLASS * ( * pParamClasses );
|
struct _HB_HCLASS ** pParamClasses;
|
||||||
struct _HB_HDECLARED * pNext; /* pointer to the next declared function */
|
struct _HB_HDECLARED * pNext; /* pointer to the next declared function */
|
||||||
} HB_HDECLARED, * PHB_HDECLARED;
|
} HB_HDECLARED, * PHB_HDECLARED;
|
||||||
|
|
||||||
/* Declared Class support structure */
|
/* Declared Class support structure */
|
||||||
|
|||||||
@@ -62,12 +62,17 @@ void hb_errInternal( HB_ERRCODE errCode, const char * szText, const char * szPar
|
|||||||
#if defined( _MSC_VER ) && _MSC_VER >= 1800
|
#if defined( _MSC_VER ) && _MSC_VER >= 1800
|
||||||
# pragma warning(push)
|
# pragma warning(push)
|
||||||
# pragma warning(disable:6011)
|
# 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
|
#endif
|
||||||
int * pGPF = NULL;
|
int * pGPF = NULL;
|
||||||
*pGPF = 0;
|
*pGPF = 0;
|
||||||
*( --pGPF ) = 0;
|
*( --pGPF ) = 0;
|
||||||
#if defined( _MSC_VER ) && _MSC_VER >= 1800
|
#if defined( _MSC_VER ) && _MSC_VER >= 1800
|
||||||
# pragma warning(pop)
|
# pragma warning(pop)
|
||||||
|
#elif defined( HB_GCC_HAS_DIAG ) && ( HB_GCC_VER >= 601 )
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1459,11 +1459,6 @@ DLMALLOC_EXPORT int mspace_mallopt(int, int);
|
|||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning( disable : 4146 ) /* no "unsigned" warnings */
|
#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
|
#endif
|
||||||
#if !NO_MALLOC_STATS
|
#if !NO_MALLOC_STATS
|
||||||
#include <stdio.h> /* for printing in malloc_stats */
|
#include <stdio.h> /* for printing in malloc_stats */
|
||||||
@@ -6063,10 +6058,6 @@ int mspace_mallopt(int param_number, int value) {
|
|||||||
|
|
||||||
#endif /* MSPACES */
|
#endif /* MSPACES */
|
||||||
|
|
||||||
#if defined(__GNUC__) && \
|
|
||||||
(__GNUC__ > 6 || (__GNUC__ == 6 && __GNUC_MINOR__ >= 1))
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* -------------------- Alternative MORECORE functions ------------------- */
|
/* -------------------- Alternative MORECORE functions ------------------- */
|
||||||
|
|
||||||
|
|||||||
22
src/vm/fm.c
22
src/vm/fm.c
@@ -188,7 +188,23 @@
|
|||||||
# if defined( HB_OS_WIN_64 )
|
# if defined( HB_OS_WIN_64 )
|
||||||
# pragma warning( disable : 4267 )
|
# pragma warning( disable : 4267 )
|
||||||
# endif
|
# 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 )
|
# if ! defined( USE_DL_PREFIX ) && ! defined( HB_FM_DLMT_ALLOC )
|
||||||
# define USE_DL_PREFIX
|
# define USE_DL_PREFIX
|
||||||
# endif
|
# endif
|
||||||
@@ -224,6 +240,10 @@
|
|||||||
# endif
|
# endif
|
||||||
# elif defined( _MSC_VER )
|
# elif defined( _MSC_VER )
|
||||||
# pragma warning( pop )
|
# 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
|
# endif
|
||||||
# if defined( HB_FM_DLMT_ALLOC )
|
# if defined( HB_FM_DLMT_ALLOC )
|
||||||
# define malloc( n ) mspace_malloc( hb_mspace(), ( n ) )
|
# define malloc( n ) mspace_malloc( hb_mspace(), ( n ) )
|
||||||
|
|||||||
Reference in New Issue
Block a user