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":846.8000001907349,"ttfb":209.60000038146973,"pageVisibility":"visible","entityId":76762,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"119cf740-002e-4f9f-bd54-582779c39dc2","navigationType":0,"readyForUser":962.5,"redirectCount":0,"resourceLoadedEnd":633.1000003814697,"resourceLoadedStart":218.7000002861023,"resourceTiming":[{"duration":6.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":218.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":218.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":225.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":11.099999904632568,"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":219.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":219.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":230.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":100.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":219.2000002861023,"connectEnd":219.2000002861023,"connectStart":219.2000002861023,"domainLookupEnd":219.2000002861023,"domainLookupStart":219.2000002861023,"fetchStart":219.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":240.90000009536743,"responseEnd":319.30000019073486,"responseStart":254.60000038146973,"secureConnectionStart":219.2000002861023},{"duration":302.2000002861023,"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":219.5,"connectEnd":219.5,"connectStart":219.5,"domainLookupEnd":219.5,"domainLookupStart":219.5,"fetchStart":219.5,"redirectEnd":0,"redirectStart":0,"requestStart":239.5,"responseEnd":521.7000002861023,"responseStart":251.60000038146973,"secureConnectionStart":219.5},{"duration":15.699999809265137,"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":219.60000038146973,"connectEnd":219.60000038146973,"connectStart":219.60000038146973,"domainLookupEnd":219.60000038146973,"domainLookupStart":219.60000038146973,"fetchStart":219.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":219.60000038146973,"responseEnd":235.30000019073486,"responseStart":235.30000019073486,"secureConnectionStart":219.60000038146973},{"duration":40.19999980926514,"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":219.80000019073486,"connectEnd":219.80000019073486,"connectStart":219.80000019073486,"domainLookupEnd":219.80000019073486,"domainLookupStart":219.80000019073486,"fetchStart":219.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":241.80000019073486,"responseEnd":260,"responseStart":258.1000003814697,"secureConnectionStart":219.80000019073486},{"duration":39.90000009536743,"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":219.90000009536743,"connectEnd":219.90000009536743,"connectStart":219.90000009536743,"domainLookupEnd":219.90000009536743,"domainLookupStart":219.90000009536743,"fetchStart":219.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":242.40000009536743,"responseEnd":259.80000019073486,"responseStart":257.30000019073486,"secureConnectionStart":219.90000009536743},{"duration":16.40000009536743,"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":220.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":236.60000038146973,"responseStart":0,"secureConnectionStart":0},{"duration":39.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":220.40000009536743,"connectEnd":220.40000009536743,"connectStart":220.40000009536743,"domainLookupEnd":220.40000009536743,"domainLookupStart":220.40000009536743,"fetchStart":220.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":242.7000002861023,"responseEnd":259.5,"responseStart":256.7000002861023,"secureConnectionStart":220.40000009536743},{"duration":18.100000381469727,"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":220.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":238.60000038146973,"responseStart":0,"secureConnectionStart":0},{"duration":41.39999961853027,"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":220.60000038146973,"connectEnd":220.60000038146973,"connectStart":220.60000038146973,"domainLookupEnd":220.60000038146973,"domainLookupStart":220.60000038146973,"fetchStart":220.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":242.80000019073486,"responseEnd":262,"responseStart":260.6000003814697,"secureConnectionStart":220.60000038146973},{"duration":408.80000019073486,"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":223.80000019073486,"connectEnd":223.80000019073486,"connectStart":223.80000019073486,"domainLookupEnd":223.80000019073486,"domainLookupStart":223.80000019073486,"fetchStart":223.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":394.7000002861023,"responseEnd":632.6000003814697,"responseStart":630.1000003814697,"secureConnectionStart":223.80000019073486},{"duration":405.90000009536743,"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":227.2000002861023,"connectEnd":227.2000002861023,"connectStart":227.2000002861023,"domainLookupEnd":227.2000002861023,"domainLookupStart":227.2000002861023,"fetchStart":227.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":400.30000019073486,"responseEnd":633.1000003814697,"responseStart":631,"secureConnectionStart":227.2000002861023},{"duration":280.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":495.2000002861023,"connectEnd":495.2000002861023,"connectStart":495.2000002861023,"domainLookupEnd":495.2000002861023,"domainLookupStart":495.2000002861023,"fetchStart":495.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":736.9000000953674,"responseEnd":775.8000001907349,"responseStart":774.8000001907349,"secureConnectionStart":495.2000002861023}],"fetchStart":1,"domainLookupStart":6,"domainLookupEnd":12,"connectStart":12,"connectEnd":31,"secureConnectionStart":20,"requestStart":32,"responseStart":210,"responseEnd":227,"domLoading":214,"domInteractive":1192,"domContentLoadedEventStart":1192,"domContentLoadedEventEnd":1249,"domComplete":2623,"loadEventStart":2623,"loadEventEnd":2624,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1038.6000003814697},{"name":"bigPipe.sidebar-id.end","time":1039.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1039.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1043.7000002861023},{"name":"activityTabFullyLoaded","time":1268.9000000953674}],"measures":[],"correlationId":"75a1fb3d3f3119","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":116,"dbReadsTimeInMs":19,"dbConnsTimeInMs":29,"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.