Artifact
ff69f7f1b82889b18fc3d5132d7d4b41b4bdbcf5:
Ticket change
[ff69f7f1b8]
- New ticket [3e634a02c6]
Werror fails on GCC 11.
by
anonymous
2022-04-01 20:47:41.
D 2022-04-01T20:47:41.375
J foundin 372361d5526ed537|372361d552
J icomment GCC\s11\spicks\sup\san\sindentation\sproblem\sas\sa\swarning,\sand\sso\s-Werror\sfails\sthe\sbuild.\s\sThis\sdoesn't\schange\sthe\ssoftware\sfrom\sfunctioning\sbut\sanything\sthat\scauses\sa\sbuild\swith\sdefault\soptions\sto\sfail\sis\sgoing\sto\sexclude\sit\sfrom\ssoftware\spackaging\ssystems.\r\n\r\n```\r\n$\smake\r\ngcc\s-g\s-I.\s-D_FILE_OFFSET_BITS=64\s-Wall\s-Werror\s\s\s-DSQLITE_THREADSAFE=0\s-DSQLITE_OMIT_LOAD_EXTENSION\s-c\ssqlite3.c\r\nsqlite3.c:\sIn\sfunction\s‘sqlite3DefaultRowEst’:\r\nsqlite3.c:103150:3:\serror:\sthis\s‘if’\sclause\sdoes\snot\sguard...\s[-Werror=misleading-indentation]\r\n103150\s|\s\s\sif(\spIdx->pPartIdxWhere!=0\s)\sa[0]\s-=\s10;\s\sassert(\s10==sqlite3LogEst(2)\s);\r\n\s\s\s\s\s\s\s|\s\s\s^~\r\nIn\sfile\sincluded\sfrom\ssqlite3.c:11616:\r\nsqlite3.c:103150:45:\snote:\s...this\sstatement,\sbut\sthe\slatter\sis\smisleadingly\sindented\sas\sif\sit\swere\sguarded\sby\sthe\s‘if’\r\n103150\s|\s\s\sif(\spIdx->pPartIdxWhere!=0\s)\sa[0]\s-=\s10;\s\sassert(\s10==sqlite3LogEst(2)\s);\r\n\s\s\s\s\s\s\s|\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s^~~~~~\r\nsqlite3.c:103151:3:\serror:\sthis\s‘if’\sclause\sdoes\snot\sguard...\s[-Werror=misleading-indentation]\r\n103151\s|\s\s\sif(\sa[0]<33\s)\sa[0]\s=\s33;\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sassert(\s33==sqlite3LogEst(10)\s);\r\n\s\s\s\s\s\s\s|\s\s\s^~\r\nIn\sfile\sincluded\sfrom\ssqlite3.c:11616:\r\nsqlite3.c:103151:45:\snote:\s...this\sstatement,\sbut\sthe\slatter\sis\smisleadingly\sindented\sas\sif\sit\swere\sguarded\sby\sthe\s‘if’\r\n103151\s|\s\s\sif(\sa[0]<33\s)\sa[0]\s=\s33;\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sassert(\s33==sqlite3LogEst(10)\s);\r\n\s\s\s\s\s\s\s|\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s^~~~~~\r\ncc1:\sall\swarnings\sbeing\streated\sas\serrors\r\nmake:\s***\s[Makefile:21:\ssqlite3.o]\sError\s1\r\n$\sgcc\s--version\r\ngcc\s(GCC)\s11.2.0\r\nCopyright\s(C)\s2021\sFree\sSoftware\sFoundation,\sInc.\r\nThis\sis\sfree\ssoftware;\ssee\sthe\ssource\sfor\scopying\sconditions.\s\sThere\sis\sNO\r\nwarranty;\snot\seven\sfor\sMERCHANTABILITY\sor\sFITNESS\sFOR\sA\sPARTICULAR\sPURPOSE.\r\n\r\n$\s\r\n```
J login anonymous
J mimetype text/x-markdown
J private_contact 38ce3484cda437461eb30faef0d79d520dcac827
J severity Important
J status Open
J title Werror\sfails\son\sGCC\s11
J type Build_Problem
K 3e634a02c6d3e024351b8b5ecf4432ab7e18d772
U anonymous
Z 536e74166f17343e7945e043779bdf97