2017-05-09 09:12 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbct/charswap.c
* contrib/hbct/token1.c
* contrib/hbnetio/netiosrv.c
* contrib/hbssl/ssl_sock.c
* contrib/rddads/ads1.c
* include/hbexprb.c
* src/common/hbprintf.c
* src/compiler/cmdcheck.c
* src/compiler/complex.c
* src/compiler/gencc.c
* src/compiler/hbmain.c
* src/compiler/hbopt.c
* src/pp/ppcore.c
* src/rdd/dbf1.c
* src/rdd/dbfcdx/dbfcdx1.c
* src/rdd/dbffpt/dbffpt1.c
* src/rdd/dbfntx/dbfntx1.c
* src/rdd/hsx/hsx.c
* src/rdd/workarea.c
* src/rtl/dates.c
* src/rtl/gtclip.c
* src/rtl/gtwin/gtwin.c
* src/rtl/gtwvt/gtwvt.c
* src/rtl/hbgtcore.c
* src/rtl/itemseri.c
* src/rtl/strtoexp.c
* src/vm/classes.c
* src/vm/task.c
* added and verified (following Viktor's patch)
/* fallthrough */ comment for GCC >= 7.
; I haven't found any errors in existing code.
/cc @vszakats
* src/rdd/dbf1.c
* minor improvement in dbf1.c
This commit is contained in:
@@ -274,7 +274,7 @@ static const char * hb_compChkParseSwitch( HB_COMP_DECL, const char * szSwitch,
|
||||
break;
|
||||
case '0':
|
||||
++szSwPtr;
|
||||
/* no break; */
|
||||
/* fallthrough */
|
||||
default:
|
||||
szSwPtr += 2;
|
||||
HB_COMP_PARAM->iExitLevel = HB_EXITLEVEL_DEFAULT;
|
||||
@@ -381,7 +381,7 @@ static const char * hb_compChkParseSwitch( HB_COMP_DECL, const char * szSwitch,
|
||||
break;
|
||||
case '0':
|
||||
++szSwPtr;
|
||||
/* no break; */
|
||||
/* fallthrough */
|
||||
default:
|
||||
HB_COMP_PARAM->iGenCOutput = HB_COMPGENC_COMPACT;
|
||||
break;
|
||||
@@ -423,7 +423,7 @@ static const char * hb_compChkParseSwitch( HB_COMP_DECL, const char * szSwitch,
|
||||
break;
|
||||
case '0':
|
||||
++szSwPtr;
|
||||
/* no break; */
|
||||
/* fallthrough */
|
||||
default:
|
||||
HB_COMP_PARAM->iErrorFmt = HB_ERRORFMT_CLIPPER;
|
||||
break;
|
||||
@@ -636,7 +636,7 @@ static const char * hb_compChkParseSwitch( HB_COMP_DECL, const char * szSwitch,
|
||||
case '0':
|
||||
case '1':
|
||||
++szSwPtr;
|
||||
/* no break; */
|
||||
/* fallthrough */
|
||||
default:
|
||||
HB_COMP_PARAM->iStartProc = 1;
|
||||
break;
|
||||
@@ -686,11 +686,11 @@ static const char * hb_compChkParseSwitch( HB_COMP_DECL, const char * szSwitch,
|
||||
break;
|
||||
case '2':
|
||||
HB_COMP_PARAM->fFullQuiet = HB_TRUE;
|
||||
/* no break */
|
||||
/* fallthrough */
|
||||
case '0':
|
||||
HB_COMP_PARAM->fLogo = HB_FALSE;
|
||||
++szSwPtr;
|
||||
/* no break */
|
||||
/* fallthrough */
|
||||
default:
|
||||
HB_COMP_PARAM->fQuiet = HB_TRUE;
|
||||
}
|
||||
|
||||
@@ -756,7 +756,7 @@ int hb_comp_yylex( YYSTYPE * yylval_ptr, HB_COMP_DECL )
|
||||
pLex->iState = OPERATOR;
|
||||
return HASHOP;
|
||||
}
|
||||
/* no break */
|
||||
/* fallthrough */
|
||||
case HB_PP_TOKEN_PLUS:
|
||||
case HB_PP_TOKEN_MINUS:
|
||||
case HB_PP_TOKEN_MULT:
|
||||
|
||||
@@ -279,7 +279,7 @@ static int hb_gencc_checkNumAhead( HB_LONG lValue, PHB_HFUNC pFunc, HB_SIZE nPCo
|
||||
break;
|
||||
#endif
|
||||
lValue = -lValue;
|
||||
/* no break */
|
||||
/* fallthrough */
|
||||
|
||||
case HB_P_PLUS:
|
||||
fprintf( cargo->yyc, "\tif( hb_xvmAddInt( %ldL ) ) break;\n", lValue );
|
||||
|
||||
@@ -587,8 +587,10 @@ void hb_compVariableAdd( HB_COMP_DECL, const char * szVarName, PHB_VARTYPE pVarT
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case HB_VSCOMP_TH_STATIC:
|
||||
pVar->uiFlags = HB_VSCOMP_THREAD;
|
||||
/* fallthrough */
|
||||
case HB_VSCOMP_STATIC:
|
||||
++HB_COMP_PARAM->iStaticCnt;
|
||||
hb_compVarListAdd( &pFunc->pStatics, pVar );
|
||||
|
||||
@@ -449,7 +449,7 @@ static HB_OPT_FUNC( hb_p_not )
|
||||
}
|
||||
}
|
||||
}
|
||||
/* no break; */
|
||||
/* fallthrough */
|
||||
#endif
|
||||
default:
|
||||
opcode = HB_P_LAST_PCODE;
|
||||
|
||||
Reference in New Issue
Block a user