<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:43:44 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-17235] unused-variable and uninitialized parameter with gcc5.0</title>
                <link>https://jira.mongodb.org/browse/SERVER-17235</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;mongoDB 2.6.7 fails to build with gcc 5.0 .&lt;/p&gt;

&lt;p&gt;There is problem with this:&lt;br/&gt;
-------------------------------------------------------------------&lt;br/&gt;
src/mongo/base/global_initializer.cpp:32:18: error: &apos;mongo::&lt;/p&gt;
{anonymous}
&lt;p&gt;::_theGlobalInitializer&apos; defined but not used &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=unused-variable&amp;#93;&lt;/span&gt;&lt;br/&gt;
     Initializer* _theGlobalInitializer = &amp;amp;getGlobalInitializer();&lt;br/&gt;
                     ^ &lt;br/&gt;
-------------------------------------------------------------------&lt;br/&gt;
and also&lt;/p&gt;

&lt;p&gt;-------------------------------------------------------------------&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp: In member function &apos;virtual mongo::Status mongo::ClearFilters::runIndexFilterCommand(const string&amp;amp;, mongo::BSONObj&amp;amp;, mongo::BSONObjBuilder*)&apos;:&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp:236:58: error: &apos;querySettings&apos; may be used uninitialized in this function &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=maybe-uninitialized&amp;#93;&lt;/span&gt;&lt;br/&gt;
         return clear(querySettings, planCache, ns, cmdObj);&lt;br/&gt;
                                                          ^&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp:236:58: error: &apos;planCache&apos; may be used uninitialized in this function &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=maybe-uninitialized&amp;#93;&lt;/span&gt;&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp: In member function &apos;virtual mongo::Status mongo::SetFilter::runIndexFilterCommand(const string&amp;amp;, mongo::BSONObj&amp;amp;, mongo::BSONObjBuilder*)&apos;:&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp:320:56: error: &apos;querySettings&apos; may be used uninitialized in this function &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=maybe-uninitialized&amp;#93;&lt;/span&gt;&lt;br/&gt;
         return set(querySettings, planCache, ns, cmdObj);&lt;br/&gt;
                                                        ^&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp:320:56: error: &apos;planCache&apos; may be used uninitialized in this function &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=maybe-uninitialized&amp;#93;&lt;/span&gt;&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp: In member function &apos;virtual mongo::Status mongo::ListFilters::runIndexFilterCommand(const string&amp;amp;, mongo::BSONObj&amp;amp;, mongo::BSONObjBuilder*)&apos;:&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp:179:40: error: &apos;querySettings&apos; may be used uninitialized in this function &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=maybe-uninitialized&amp;#93;&lt;/span&gt;&lt;br/&gt;
         return list(*querySettings, bob);&lt;br/&gt;
                                        ^&lt;/p&gt;

&lt;p&gt;-------------------------------------------------------------------&lt;br/&gt;
also with --disable-warnings-as-errors :&lt;/p&gt;

&lt;p&gt;-------------------------------------------------------------------&lt;br/&gt;
src/mongo/db/commands/plan_cache_commands.cpp: In member function &apos;virtual mongo::Status mongo::PlanCacheListQueryShapes::runPlanCacheCommand(const string&amp;amp;, mongo::BSONObj&amp;amp;, mongo::BSONObjBuilder*)&apos;:&lt;br/&gt;
src/mongo/db/commands/plan_cache_commands.cpp:223:36: warning: &apos;planCache&apos; may be used uninitialized in this function &lt;span class=&quot;error&quot;&gt;&amp;#91;-Wmaybe-uninitialized&amp;#93;&lt;/span&gt;&lt;br/&gt;
         return list(*planCache, bob);&lt;br/&gt;
                                    ^&lt;br/&gt;
src/mongo/db/commands/plan_cache_commands.cpp: In member function &apos;virtual mongo::Status mongo::PlanCacheClear::runPlanCacheCommand(const string&amp;amp;, mongo::BSONObj&amp;amp;, mongo::BSONObjBuilder*)&apos;:&lt;br/&gt;
src/mongo/db/commands/plan_cache_commands.cpp:267:43: warning: &apos;planCache&apos; may be used uninitialized in this function &lt;span class=&quot;error&quot;&gt;&amp;#91;-Wmaybe-uninitialized&amp;#93;&lt;/span&gt;&lt;br/&gt;
         return clear(planCache, ns, cmdObj);&lt;br/&gt;
                                           ^&lt;/p&gt;

&lt;p&gt;src/mongo/db/commands/plan_cache_commands.cpp:338:48: warning: &apos;planCache&apos; may be used uninitialized in this function &lt;span class=&quot;error&quot;&gt;&amp;#91;-Wmaybe-uninitialized&amp;#93;&lt;/span&gt;&lt;br/&gt;
         return list(*planCache, ns, cmdObj, bob);&lt;br/&gt;
                                                ^&lt;br/&gt;
-------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;I suggest this could be fixed by adding -Wno-unused-variable and -Wno-maybe-uninitialized into SConstruct.&lt;br/&gt;
(same as -Wno-unused-function,...)&lt;/p&gt;

&lt;p&gt;I don&apos;t tried it, but guess this affects all mongoDB versions...&lt;/p&gt;</description>
                <environment></environment>
        <key id="183374">SERVER-17235</key>
            <summary>unused-variable and uninitialized parameter with gcc5.0</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="mskalick">Marek Skalick&#253;</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Feb 2015 20:20:24 +0000</created>
                <updated>Mon, 27 Apr 2015 17:00:55 +0000</updated>
                            <resolved>Tue, 10 Feb 2015 14:37:47 +0000</resolved>
                                    <version>2.6.7</version>
                                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="825831" author="acm" created="Tue, 10 Feb 2015 14:37:32 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mskalick&quot; class=&quot;user-hover&quot; rel=&quot;mskalick&quot;&gt;mskalick&lt;/a&gt; -&lt;/p&gt;

&lt;p&gt;I&apos;m going to close this as works as designed, because I don&apos;t think we will be taking any further action in response to this information. Please feel free to re-open this ticket if there is anything more that we can do to help.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                            <comment id="825748" author="acm" created="Tue, 10 Feb 2015 13:15:52 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mskalick&quot; class=&quot;user-hover&quot; rel=&quot;mskalick&quot;&gt;mskalick&lt;/a&gt; -&lt;/p&gt;

&lt;p&gt;Correct: we have not yet validated our build with gcc-4.9 or newer, so we have not had an opportunity to evaluate novel warnings and decide if they indicate real latent issues in our code, are compiler false positives, or are something we just want to suppress. Until we do so, you will need to use --disable-warnings-as-errors if you are using GCC newer than 4.8.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                            <comment id="825661" author="mskalick" created="Tue, 10 Feb 2015 07:41:02 +0000"  >&lt;p&gt;No, sorry for confusion. With --disable-warnings-as-errors it works fine.&lt;/p&gt;

&lt;p&gt;In the second part I only want to report where the problems (warnings) are...&lt;/p&gt;

&lt;p&gt;I haven&apos;t tried to build mongoDB 3.0 yet, but in the code (SConstruct) I haven&apos;t found similar gcc options.&lt;/p&gt;</comment>
                            <comment id="825198" author="acm" created="Mon, 9 Feb 2015 20:47:56 +0000"  >&lt;p&gt;Hi -&lt;/p&gt;

&lt;p&gt;I&apos;m a little confused by the second part of your description: are you saying that it still fails to build when using --disable-warnings-as-errors? Or only that it still issues warnings? We are unlikely to take any action on a maintenance branch to address warnings from newer compilers: such a situation is exactly the motivation for providing the --disable-warnings-as-errors option.&lt;/p&gt;

&lt;p&gt;Do these same warnings occur on the master branch?&lt;/p&gt;

&lt;p&gt;Also, please note that GCC 5 is still in development, and we are unlikely to begin testing with it until it is officially released. In particular, we don&apos;t want to spend time chasing false positive warnings that may not be presenting in the shipping version of the compiler.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 9 Feb 2015 20:47:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 1 week, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>adam.midvidy</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 1 week, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>andrew.morrow@mongodb.com</customfieldvalue>
            <customfieldvalue>mskalick</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlcof:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs663z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>161198</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Build mongoDB 2.6.7 with gcc 5.0.0&lt;/p&gt;

&lt;p&gt;Builded by&lt;/p&gt;

&lt;p&gt; scons all \&lt;br/&gt;
        --use-system-all  \&lt;br/&gt;
        --usev8 \&lt;br/&gt;
        --nostrip \&lt;br/&gt;
        --ssl \&lt;br/&gt;
        --disable-warnings-as-errors&lt;/p&gt;
</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkz8v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>