diff --git a/ChangeLog.txt b/ChangeLog.txt index 3a1b753e48..fd8e471ea8 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,13 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2018-03-16 19:10 UTC+0200 Phil Krylov (phil a t newstar.rinet.ru) + * include/hbexprb.c + * src/compiler/complex.c + * src/vm/memvars.c + * src/vm/strapi.c + ! fixed compiler warnings emitted by GCC 7+ + 2018-02-23 15:15 UTC+0200 Alexey Myronenko (m.oleksa/at/ukr.net) * src/debug/dbgwa.prg ! fixed position of the cursor in (reopened) F6-WA window diff --git a/include/hbexprb.c b/include/hbexprb.c index ecef9a9b0f..efda8c8279 100644 --- a/include/hbexprb.c +++ b/include/hbexprb.c @@ -900,6 +900,7 @@ static HB_EXPR_FUNC( hb_compExprUseRef ) case HB_EA_PUSH_POP: case HB_EA_STATEMENT: hb_compWarnMeaningless( HB_COMP_PARAM, pSelf ); + /* fallthrough */ case HB_EA_DELETE: HB_COMP_EXPR_FREE( pSelf->value.asReference ); break; diff --git a/src/compiler/complex.c b/src/compiler/complex.c index 66c859832a..028bc677fa 100644 --- a/src/compiler/complex.c +++ b/src/compiler/complex.c @@ -837,6 +837,7 @@ int hb_comp_yylex( YYSTYPE * yylval_ptr, HB_COMP_DECL ) case HB_PP_TOKEN_EOL: pLex->fEol = HB_TRUE; + /* fallthrough */ case HB_PP_TOKEN_EOC: pLex->iState = LOOKUP; return ( HB_UCHAR ) pToken->value[ 0 ]; diff --git a/src/vm/memvars.c b/src/vm/memvars.c index 4a498515a2..5dcd53c1b4 100644 --- a/src/vm/memvars.c +++ b/src/vm/memvars.c @@ -574,7 +574,7 @@ char * hb_memvarGetStrValuePtr( char * szVarName, HB_SIZE * pnLen ) PHB_DYNS pDynVar; char * szValue = NULL; - HB_TRACE( HB_TR_DEBUG, ( "hb_memvarGetStrValuePtr(%s, %p)", ( void * ) szVarName, ( void * ) pnLen ) ); + HB_TRACE( HB_TR_DEBUG, ( "hb_memvarGetStrValuePtr(%s, %p)", szVarName, ( void * ) pnLen ) ); pDynVar = hb_memvarFindSymbol( szVarName, *pnLen ); diff --git a/src/vm/strapi.c b/src/vm/strapi.c index 22e962dcb4..d9a0698964 100644 --- a/src/vm/strapi.c +++ b/src/vm/strapi.c @@ -881,7 +881,7 @@ void hb_retstrlen( void * cdp, const char * szText, HB_SIZE nLen ) { HB_STACK_TLS_PRELOAD - HB_TRACE( HB_TR_DEBUG, ( "hb_retstrlen(%p,%s,%" HB_PFS "u)", cdp, ( const void * ) szText, nLen ) ); + HB_TRACE( HB_TR_DEBUG, ( "hb_retstrlen(%p,%s,%" HB_PFS "u)", cdp, szText, nLen ) ); hb_itemPutStrLen( hb_stackReturnItem(), cdp, szText, nLen ); } @@ -909,7 +909,7 @@ int hb_storstr( void * cdp, const char * szText, int iParam ) { HB_STACK_TLS_PRELOAD - HB_TRACE( HB_TR_DEBUG, ( "hb_storstr(%p,%s,%d)", cdp, ( const void * ) szText, iParam ) ); + HB_TRACE( HB_TR_DEBUG, ( "hb_storstr(%p,%s,%d)", cdp, szText, iParam ) ); if( iParam == -1 ) { @@ -991,7 +991,7 @@ int hb_storstrlen( void * cdp, const char * szText, HB_SIZE nLen, int iParam ) { HB_STACK_TLS_PRELOAD - HB_TRACE( HB_TR_DEBUG, ( "hb_storstrlen(%p,%s,%" HB_PFS "u,%d)", cdp, ( const void * ) szText, nLen, iParam ) ); + HB_TRACE( HB_TR_DEBUG, ( "hb_storstrlen(%p,%s,%" HB_PFS "u,%d)", cdp, szText, nLen, iParam ) ); if( iParam == -1 ) {