The CMake code of the tokudb build files sets and checks the following cflags:
set_cflags_if_supported(
|
-Wextra
|
-Wbad-function-cast
|
-Wno-missing-noreturn
|
-Wstrict-prototypes
|
-Wmissing-prototypes
|
-Wmissing-declarations
|
-Wpointer-arith
|
#-Wshadow will fail with GCC-8
|
${OPTIONAL_CFLAGS}
|
## other flags to try:
|
#-Wunsafe-loop-optimizations
|
#-Wpointer-arith
|
#-Wc++-compat
|
#-Wc++11-compat
|
#-Wwrite-strings
|
#-Wzero-as-null-pointer-constant
|
#-Wlogical-op
|
#-Wvector-optimization-performance
|
)
|
Of those, the following produce a warning with gcc8 with cause CMake to abort the compilation. Therefore they have to be removed. This pertains all versions. It probably does not trigger with old CMake versions or older gcc versions that do not print those warnings.
-Wbad-function-cast
|
-Wstrict-prototypes
|
-Wmissing-prototypes
|
Warnings:
|
cc1plus: warning: command line option '-Wbad-function-cast' is valid for C/ObjC but not for C++
|
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
|
cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
|
{"report":{"fcp":2932,"ttfb":1041.5,"pageVisibility":"visible","entityId":69443,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"154cfe2b-47af-4ad5-81a2-9b49e3dc0144","navigationType":0,"readyForUser":3015.9000005722046,"redirectCount":0,"resourceLoadedEnd":3942.800000190735,"resourceLoadedStart":1051.1999998092651,"resourceTiming":[{"duration":1392.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":1051.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1051.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2443.800000190735,"responseStart":0,"secureConnectionStart":0},{"duration":1392.6999998092651,"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":1051.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1051.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2444.199999809265,"responseStart":0,"secureConnectionStart":0},{"duration":1414.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":1051.6999998092651,"connectEnd":1051.6999998092651,"connectStart":1051.6999998092651,"domainLookupEnd":1051.6999998092651,"domainLookupStart":1051.6999998092651,"fetchStart":1051.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1051.6999998092651,"responseEnd":2466.5,"responseStart":2466.5,"secureConnectionStart":1051.6999998092651},{"duration":1500.6999998092651,"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":1052,"connectEnd":1052,"connectStart":1052,"domainLookupEnd":1052,"domainLookupStart":1052,"fetchStart":1052,"redirectEnd":0,"redirectStart":0,"requestStart":1052,"responseEnd":2552.699999809265,"responseStart":2552.699999809265,"secureConnectionStart":1052},{"duration":1504.5999994277954,"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":1052.1000003814697,"connectEnd":1052.1000003814697,"connectStart":1052.1000003814697,"domainLookupEnd":1052.1000003814697,"domainLookupStart":1052.1000003814697,"fetchStart":1052.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1052.1000003814697,"responseEnd":2556.699999809265,"responseStart":2556.699999809265,"secureConnectionStart":1052.1000003814697},{"duration":1504.6999998092651,"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":1052.4000005722046,"connectEnd":1052.4000005722046,"connectStart":1052.4000005722046,"domainLookupEnd":1052.4000005722046,"domainLookupStart":1052.4000005722046,"fetchStart":1052.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1052.4000005722046,"responseEnd":2557.1000003814697,"responseStart":2557.1000003814697,"secureConnectionStart":1052.4000005722046},{"duration":1505,"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":1052.6000003814697,"connectEnd":1052.6000003814697,"connectStart":1052.6000003814697,"domainLookupEnd":1052.6000003814697,"domainLookupStart":1052.6000003814697,"fetchStart":1052.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1052.6000003814697,"responseEnd":2557.6000003814697,"responseStart":2557.6000003814697,"secureConnectionStart":1052.6000003814697},{"duration":1559.5,"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":1052.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1052.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2612.199999809265,"responseStart":0,"secureConnectionStart":0},{"duration":1505.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":1052.9000005722046,"connectEnd":1052.9000005722046,"connectStart":1052.9000005722046,"domainLookupEnd":1052.9000005722046,"domainLookupStart":1052.9000005722046,"fetchStart":1052.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1052.9000005722046,"responseEnd":2558.1000003814697,"responseStart":2558.1000003814697,"secureConnectionStart":1052.9000005722046},{"duration":1559.3000001907349,"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":1053.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1053.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2612.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":1505.4000005722046,"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":1053.1999998092651,"connectEnd":1053.1999998092651,"connectStart":1053.1999998092651,"domainLookupEnd":1053.1999998092651,"domainLookupStart":1053.1999998092651,"fetchStart":1053.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1053.1999998092651,"responseEnd":2558.6000003814697,"responseStart":2558.6000003814697,"secureConnectionStart":1053.1999998092651},{"duration":2883.199999809265,"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":1058.9000005722046,"connectEnd":1058.9000005722046,"connectStart":1058.9000005722046,"domainLookupEnd":1058.9000005722046,"domainLookupStart":1058.9000005722046,"fetchStart":1058.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1058.9000005722046,"responseEnd":3942.1000003814697,"responseStart":3942.1000003814697,"secureConnectionStart":1058.9000005722046},{"duration":2883.800000190735,"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":1059,"connectEnd":1059,"connectStart":1059,"domainLookupEnd":1059,"domainLookupStart":1059,"fetchStart":1059,"redirectEnd":0,"redirectStart":0,"requestStart":1059,"responseEnd":3942.800000190735,"responseStart":3942.800000190735,"secureConnectionStart":1059},{"duration":717.8000001907349,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":2625.300000190735,"connectEnd":2625.300000190735,"connectStart":2625.300000190735,"domainLookupEnd":2625.300000190735,"domainLookupStart":2625.300000190735,"fetchStart":2625.300000190735,"redirectEnd":0,"redirectStart":0,"requestStart":2625.300000190735,"responseEnd":3343.1000003814697,"responseStart":3343.1000003814697,"secureConnectionStart":2625.300000190735},{"duration":1094.9000005722046,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2922.199999809265,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2922.199999809265,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":4017.1000003814697,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":873,"responseStart":1042,"responseEnd":1052,"domLoading":1049,"domInteractive":3969,"domContentLoadedEventStart":3969,"domContentLoadedEventEnd":4013,"domComplete":5348,"loadEventStart":5349,"loadEventEnd":5350,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":3948.9000005722046},{"name":"bigPipe.sidebar-id.end","time":3949.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":3950},{"name":"bigPipe.activity-panel-pipe-id.end","time":3952.5},{"name":"activityTabFullyLoaded","time":4021.300000190735}],"measures":[],"correlationId":"8078009a02801b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":15,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}