Bug #86052 Fix GCC 7 compile warnings
Submitted: 24 Apr 2017 8:52 Modified: 27 Apr 2017 16:11
Reporter: Jon Olav Hauglid Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.2 OS:Any
Assigned to: CPU Architecture:Any

[24 Apr 2017 8:52] Jon Olav Hauglid
Description:
Fix new compilation warnings reported by GCC 7.

Examples of new warnings:
storage/federated/ha_federated.cc:1423:38: error: this statement may fall through [-Werror=implicit-fallthrough=]
         if ((store_length >= length) || (i > 0)) /* for all parts of end key*/
             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~

storage/innobase/include/page0zip.ic:145:24: error: ?: using integer constants in boolean context, the expression will always evaluate to ‘true’ [-Werror=int-in-bool-context]
  ut_ad(rec_size > comp ? REC_N_NEW_EXTRA_BYTES : REC_N_OLD_EXTRA_BYTES);

storage/innobase/data/data0type.cc:224:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
   fputs("DATA_VAR_POINT", stderr);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~

How to repeat:
Build with GCC 7.
[27 Apr 2017 16:11] Paul DuBois
Posted by developer:
 
Fixed in 8.0.2.

Code cleanup. No changelog entry needed.