<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:35:53 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-14754] Squelch GCC 4.9.1 warnings and linker error</title>
                <link>https://jira.mongodb.org/browse/SERVER-14754</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;GCC 4.9.1 generates the warnings included below, as well as a linker error due to a (unneeded) desctructor.&lt;/p&gt;

&lt;p&gt;I have a patch that fixes this by initializing some out parameters even in case of an error, and by removing the unneeded destructor. Will submit for code review.&lt;/p&gt;

&lt;p&gt;g++ -o build/linux2/normal/mongo/db/commands/index_filter_commands.o -c -Wnon-virtual-dtor -Woverloaded-virtual -std=c++11 -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -Werror -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -fno-builtin-memcmp -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D_FILE_OFFSET_BITS=64 -DMONGO_HAVE___THREAD -DMONGO_HAVE_CXX11_ATOMICS -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_POSIX_MONOTONIC_CLOCK -DMONGO_HAVE_EXECINFO_BACKTRACE -Isrc/third_party/boost -Isrc/third_party/s2 -Isrc/third_party/pcre-8.30 -Ibuild/linux2/normal -Isrc -Isrc/third_party/snappy src/mongo/db/commands/index_filter_commands.cpp&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp: In member function &apos;virtual mongo::Status mongo::ClearFilters::runIndexFilterCommand(mongo::OperationContext*, const string&amp;amp;, mongo::BSONObj&amp;amp;, mongo::BSONObjBuilder*)&apos;:&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp:243:63: 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(txn, querySettings, planCache, ns, cmdObj);&lt;br/&gt;
                                                               ^&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp:243:63: 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(mongo::OperationContext*, const string&amp;amp;, mongo::BSONObj&amp;amp;, mongo::BSONObjBuilder*)&apos;:&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp:183: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;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp: In member function &apos;virtual mongo::Status mongo::SetFilter::runIndexFilterCommand(mongo::OperationContext*, const string&amp;amp;, mongo::BSONObj&amp;amp;, mongo::BSONObjBuilder*)&apos;:&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp:336:61: 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(txn, querySettings, planCache, ns, cmdObj);&lt;br/&gt;
                                                             ^&lt;br/&gt;
src/mongo/db/commands/index_filter_commands.cpp:336:61: 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;
cc1plus: all warnings being treated as errors&lt;br/&gt;
scons: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;build/linux2/normal/mongo/db/commands/index_filter_commands.o&amp;#93;&lt;/span&gt; Error 1&lt;/p&gt;</description>
                <environment></environment>
        <key id="150338">SERVER-14754</key>
            <summary>Squelch GCC 4.9.1 warnings and linker error</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="geert.bosch@mongodb.com">Geert Bosch</assignee>
                                    <reporter username="geert.bosch@mongodb.com">Geert Bosch</reporter>
                        <labels>
                    </labels>
                <created>Thu, 31 Jul 2014 19:41:50 +0000</created>
                <updated>Mon, 6 Oct 2014 15:31:59 +0000</updated>
                            <resolved>Mon, 11 Aug 2014 11:53:00 +0000</resolved>
                                    <version>2.7.4</version>
                                    <fixVersion>2.7.5</fixVersion>
                                    <component>Internal Code</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="686741" author="geert.bosch" created="Mon, 11 Aug 2014 11:53:00 +0000"  >&lt;p&gt;This allows MongoDB to be built with the newest GCC compilers, no change otherwise.&lt;/p&gt;</comment>
                            <comment id="679095" author="xgen-internal-githook" created="Fri, 1 Aug 2014 19:58:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;GeertBosch&apos;, u&apos;name&apos;: u&apos;Geert Bosch&apos;, u&apos;email&apos;: u&apos;geert.bosch@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-14754&quot; title=&quot;Squelch GCC 4.9.1 warnings and linker error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-14754&quot;&gt;&lt;del&gt;SERVER-14754&lt;/del&gt;&lt;/a&gt;: Squelch GCC 4.9.1 warnings and linker error&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e88cbe0c83833601f688d8e6b7eb165c8583a4aa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e88cbe0c83833601f688d8e6b7eb165c8583a4aa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="678000" author="geert.bosch" created="Thu, 31 Jul 2014 20:24:37 +0000"  >&lt;p&gt;build/linux2/normal/mongo/db/repl/repl_coordinator_impl.o: In function `mongo::repl::TopologyCoordinatorImpl::~TopologyCoordinatorImpl()&apos;:&lt;br/&gt;
/home/bosch/mongo/src/mongo/db/repl/topology_coordinator_impl.h:53: undefined reference to `vtable for mongo::repl::TopologyCoordinatorImpl&apos;&lt;br/&gt;
collect2: error: ld returned 1 exit status&lt;br/&gt;
scons: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;build/linux2/normal/mongo/db/repl/replica_set_config_checks_test&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
scons: building terminated because of errors.&lt;/p&gt;

&lt;p&gt;I thought I had included this... apparently not.&lt;/p&gt;</comment>
                            <comment id="677979" author="milkie" created="Thu, 31 Jul 2014 19:59:40 +0000"  >&lt;p&gt;What is the linker error?&lt;/p&gt;</comment>
                    </comments>
                    <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_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 31 Jul 2014 19:59:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 27 weeks, 2 days 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 27 weeks, 2 days 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>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>geert.bosch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlqnb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>130415</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;On Ubuntu 14.04, install GCC 4.9.1 and run &quot;scons all&quot;.&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10153"><![CDATA[Unneeded]]></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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

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

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