Marko Mäkelä
added a comment - In 10.4, MDEV-5313 and MDEV-16188 introduced some type mismatch, triggering GCC 10 -Wenum-conversion and clang 10 -Wimplicit-int-float-conversion .
It looks like my fixes for GCC 10 and clang 10 could reach the 10.5.2 release after all. But I am building a very limited set of storage engines.
Marko Mäkelä
added a comment - It looks like my fixes for GCC 10 and clang 10 could reach the 10.5.2 release after all. But I am building a very limited set of storage engines.
In my experience, cmake -DWITH_ASAN=ON will cause GCC to emit even more warnings. I just fixed one -Wmaybe-uninitialized in 10.2 that was flagged by GCC for an 10.5 ASAN build. I also have the feeling that GCC is reporting some bogus -Wstringop-overflow when -fsanitize=address is enabled.
Marko Mäkelä
added a comment - In my experience, cmake -DWITH_ASAN=ON will cause GCC to emit even more warnings. I just fixed one -Wmaybe-uninitialized in 10.2 that was flagged by GCC for an 10.5 ASAN build. I also have the feeling that GCC is reporting some bogus -Wstringop-overflow when -fsanitize=address is enabled.
I think that we should by default enable all warnings, and have MYSQL_MAINTAINER_MODE only enable -Werror. Currently, a debug version of 10.1 cannot be built with GCC 10 or clang 10 because of various -Werror. That would not be changed by me; I think that 10.1 is already too close to its end of life. But, with my pending change, if you specify cmake -DMYSQL_MAINTAINER_MODE=OFF, you will not lose useful warnings. (And we will enjoy those warnings also for non-debug builds by default.)
Marko Mäkelä
added a comment - I think that we should by default enable all warnings, and have MYSQL_MAINTAINER_MODE only enable -Werror . Currently, a debug version of 10.1 cannot be built with GCC 10 or clang 10 because of various -Werror . That would not be changed by me; I think that 10.1 is already too close to its end of life. But, with my pending change, if you specify cmake -DMYSQL_MAINTAINER_MODE=OFF , you will not lose useful warnings. (And we will enjoy those warnings also for non-debug builds by default.)
Just small note to confirm that 10.1, debug, can not be build with GCC 7.5.0 without `-DMYSQL_MAINTAINER_MODE=OFF`:
10.1.45 c8e0c524af83149e77c88e9a6fd763221dea9277
/test/10.1_dbg/storage/myisam/ft_nlq_search.c: In function ‘walk_and_match’:
/test/10.1_dbg/storage/myisam/ft_nlq_search.c:139:15: error: ‘subkeys.i’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
tmp_weight= subkeys.f;
~~~~~~~~~~^~~~~~~~~~~
Adding `-DMYSQL_MAINTAINER_MODE=OFF` enables the build to complete. Interestingly, `-DMYSQL_MAINTAINER_MODE=0` does not work and still aborts the build as above.
Roel Van de Paar
added a comment - - edited Just small note to confirm that 10.1, debug, can not be build with GCC 7.5.0 without `-DMYSQL_MAINTAINER_MODE=OFF`:
10.1.45 c8e0c524af83149e77c88e9a6fd763221dea9277
/test/10.1_dbg/storage/myisam/ft_nlq_search.c: In function ‘walk_and_match’:
/test/10.1_dbg/storage/myisam/ft_nlq_search.c:139:15: error: ‘subkeys.i’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
tmp_weight= subkeys.f;
~~~~~~~~~~^~~~~~~~~~~
Adding `-DMYSQL_MAINTAINER_MODE=OFF` enables the build to complete. Interestingly, `-DMYSQL_MAINTAINER_MODE=0` does not work and still aborts the build as above.
People
Oleksandr Byelkin
Michal Schorm
Votes:
0Vote for this issue
Watchers:
9Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1063.7999997138977,"ttfb":340.5,"pageVisibility":"visible","entityId":76762,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4a8cfe2c-23e5-4079-9dad-71913f242315","navigationType":0,"readyForUser":1162.8999996185303,"redirectCount":0,"resourceLoadedEnd":1153.6999998092651,"resourceLoadedStart":345.59999990463257,"resourceTiming":[{"duration":177.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":345.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":345.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":523.5,"responseStart":0,"secureConnectionStart":0},{"duration":177.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":346,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":346,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":523.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":197.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":346.09999990463257,"connectEnd":346.09999990463257,"connectStart":346.09999990463257,"domainLookupEnd":346.09999990463257,"domainLookupStart":346.09999990463257,"fetchStart":346.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":346.09999990463257,"responseEnd":543.7999997138977,"responseStart":543.7999997138977,"secureConnectionStart":346.09999990463257},{"duration":291.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":346.2999997138977,"connectEnd":346.2999997138977,"connectStart":346.2999997138977,"domainLookupEnd":346.2999997138977,"domainLookupStart":346.2999997138977,"fetchStart":346.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":346.2999997138977,"responseEnd":638.1999998092651,"responseStart":638.1999998092651,"secureConnectionStart":346.2999997138977},{"duration":295.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":346.59999990463257,"connectEnd":346.59999990463257,"connectStart":346.59999990463257,"domainLookupEnd":346.59999990463257,"domainLookupStart":346.59999990463257,"fetchStart":346.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":346.59999990463257,"responseEnd":642,"responseStart":642,"secureConnectionStart":346.59999990463257},{"duration":296.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":346.69999980926514,"connectEnd":346.69999980926514,"connectStart":346.69999980926514,"domainLookupEnd":346.69999980926514,"domainLookupStart":346.69999980926514,"fetchStart":346.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":346.69999980926514,"responseEnd":642.7999997138977,"responseStart":642.7999997138977,"secureConnectionStart":346.69999980926514},{"duration":296.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":346.8999996185303,"connectEnd":346.8999996185303,"connectStart":346.8999996185303,"domainLookupEnd":346.8999996185303,"domainLookupStart":346.8999996185303,"fetchStart":346.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":346.8999996185303,"responseEnd":643.2999997138977,"responseStart":643.2999997138977,"secureConnectionStart":346.8999996185303},{"duration":348.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":347.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":347.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":695.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":296.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":347.19999980926514,"connectEnd":347.19999980926514,"connectStart":347.19999980926514,"domainLookupEnd":347.19999980926514,"domainLookupStart":347.19999980926514,"fetchStart":347.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":347.19999980926514,"responseEnd":643.6999998092651,"responseStart":643.6999998092651,"secureConnectionStart":347.19999980926514},{"duration":348,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":347.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":347.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":695.5,"responseStart":0,"secureConnectionStart":0},{"duration":296.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":347.69999980926514,"connectEnd":347.69999980926514,"connectStart":347.69999980926514,"domainLookupEnd":347.69999980926514,"domainLookupStart":347.69999980926514,"fetchStart":347.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":347.69999980926514,"responseEnd":644.2999997138977,"responseStart":644.2999997138977,"secureConnectionStart":347.69999980926514},{"duration":799.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":354.19999980926514,"connectEnd":354.19999980926514,"connectStart":354.19999980926514,"domainLookupEnd":354.19999980926514,"domainLookupStart":354.19999980926514,"fetchStart":354.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":354.19999980926514,"responseEnd":1153.2999997138977,"responseStart":1153.2999997138977,"secureConnectionStart":354.19999980926514},{"duration":797.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":355.8999996185303,"connectEnd":355.8999996185303,"connectStart":355.8999996185303,"domainLookupEnd":355.8999996185303,"domainLookupStart":355.8999996185303,"fetchStart":355.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":355.8999996185303,"responseEnd":1153.6999998092651,"responseStart":1153.6999998092651,"secureConnectionStart":355.8999996185303},{"duration":443.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":708.6999998092651,"connectEnd":708.6999998092651,"connectStart":708.6999998092651,"domainLookupEnd":708.6999998092651,"domainLookupStart":708.6999998092651,"fetchStart":708.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":708.6999998092651,"responseEnd":1152.1999998092651,"responseStart":1152.1999998092651,"secureConnectionStart":708.6999998092651},{"duration":213.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1056.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1056.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1269.6999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":166,"responseStart":341,"responseEnd":356,"domLoading":344,"domInteractive":1319,"domContentLoadedEventStart":1319,"domContentLoadedEventEnd":1366,"domComplete":1706,"loadEventStart":1706,"loadEventEnd":1706,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1279.5},{"name":"bigPipe.sidebar-id.end","time":1280.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.start","time":1280.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1283.2999997138977},{"name":"activityTabFullyLoaded","time":1383.8999996185303}],"measures":[],"correlationId":"4fbe4dfad0fa7e","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":19,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
In 10.4, MDEV-5313 and
MDEV-16188introduced some type mismatch, triggering GCC 10 -Wenum-conversion and clang 10 -Wimplicit-int-float-conversion.