From 2000a698da35915afb1a598433337a735d27ae24 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 Sep 2016 18:21:14 +0300 Subject: Add different fixes for gcc 7 warnings. Some possible buffer overflows. Add attribute for mark fallthrough cases. Skipped libconfig warnings. --- src/map/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 51d02ff40..0674f0137 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -11504,7 +11504,7 @@ void pc_autotrade_update(struct map_session_data *sd, enum e_pc_autotrade_update )) Sql_ShowDebug(map->mysql_handle); } - /* yes we want it to fall */ + FALLTHROUGH case PAUC_REFRESH: for( i = 0; i < sd->vend_num; i++ ) { if( sd->vending[i].amount == 0 ) -- cgit v1.2.3-60-g2f50