Bug #92119 Enable -Wjump-misses-init
Submitted: 22 Aug 2018 8:25 Modified: 3 Oct 2018 18:05
Reporter: Steinar Gunderson Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.15 OS:Any
Assigned to: CPU Architecture:Any

[22 Aug 2018 8:25] Steinar Gunderson
Description:
For C++ code, jumping (with case or goto) over initializers is illegal. In C, it's permitted, but very likely to be a bug. We should try enabling -Wjump-misses-init (part of -Wc++-compat) on our code to guard against such bugs in the future.

How to repeat:
N/A

Suggested fix:
N/A
[3 Oct 2018 17:19] Tor Didriksen
Posted by developer:
 
Pushed as
commit dbd15f9b17fbed84208acf0ec0a7d6225dc7077b
Author: Ole-Hjalmar Kristensen <Ole-Hjalmar.Kristensen@oracle.com>
Date:   Thu Aug 23 15:39:26 2018 +0200

    Followup of patch for Bug#28378971. Add compiler warning flag for "jump-misses-init" for gcc and fix resulting warnings.
[3 Oct 2018 18:05] Paul DuBois
Posted by developer:
 
Fixed in 8.0.14.

Configuration/code cleanup. No changelog entry needed.