<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:01:15 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>[CXX-1056] Add mechanism to disable deprecation warnings for a given section of code</title>
                <link>https://jira.mongodb.org/browse/CXX-1056</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;It would be nice to be able to test deprecated driver functionality without generating deprecation warnings in the test compile output.&lt;/p&gt;

&lt;p&gt;In clang, deprecation warnings can be disabled for a section of code as follows:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: gray; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;#pragma clang diagnostic push&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: gray; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;#pragma clang diagnostic ignored &quot;-Wdeprecated-declarations&quot;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;...&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: gray; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;#pragma clang diagnostic pop&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;We should hide such compiler-specific functionality behind a header or macro, and have test code use this mechanism to disable deprecation warnings for the tests of deprecated functionality.&lt;/p&gt;

&lt;p&gt;As part of the work for this ticket, all existing deprecated API methods should have the BSONCXX_DEPRECATED or MONGOCXX_DEPRECATED specifier added to the method declaration.  No deprecation specifiers will be added to public types.&lt;/p&gt;

&lt;p&gt;In addition, as part of the work for this ticket, we should remove &quot;-Wno-error=deprecated-declarations&quot; from our Evergreen compiler flags, which was temporarily added to work around &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1226&quot; title=&quot;Resolve json.cpp compile warnings introduced by deprecation of bson_as_json&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1226&quot;&gt;&lt;del&gt;CXX-1226&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="320285">CXX-1056</key>
            <summary>Add mechanism to disable deprecation warnings for a given section of code</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="rassi">J Rassi</assignee>
                                    <reporter username="rassi">J Rassi</reporter>
                        <labels>
                    </labels>
                <created>Sat, 1 Oct 2016 03:11:53 +0000</created>
                <updated>Thu, 5 Oct 2017 15:13:16 +0000</updated>
                            <resolved>Thu, 25 May 2017 20:08:24 +0000</resolved>
                                                    <fixVersion>3.2.0-rc0</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1580299" author="rassi@10gen.com" created="Thu, 25 May 2017 20:07:48 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/55451dde2b893600aed76e258024ba360d803c00&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/55451dde2b893600aed76e258024ba360d803c00&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1580298" author="rassi@10gen.com" created="Thu, 25 May 2017 20:07:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/163227b2753371ff492520c7415df85dfe3b2795&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/163227b2753371ff492520c7415df85dfe3b2795&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1554347" author="xgen-internal-githook" created="Fri, 21 Apr 2017 02:22:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;J. Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1056&quot; title=&quot;Add mechanism to disable deprecation warnings for a given section of code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1056&quot;&gt;&lt;del&gt;CXX-1056&lt;/del&gt;&lt;/a&gt; Temporarily add -Wno-error=deprecated-declarations to compile&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 438916803e0739f6c5972111ba4d14b0f060a358.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/6adf6714e63247a0d13782a06b806c3bee0eeb46&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/6adf6714e63247a0d13782a06b806c3bee0eeb46&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1506910" author="xgen-internal-githook" created="Thu, 23 Feb 2017 09:53:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;J. Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1056&quot; title=&quot;Add mechanism to disable deprecation warnings for a given section of code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1056&quot;&gt;&lt;del&gt;CXX-1056&lt;/del&gt;&lt;/a&gt; Temporarily add -Wno-error=deprecated-declarations to compile&lt;/p&gt;

&lt;p&gt;This is necessary to work around the fact that the driver currently&lt;br/&gt;
calls into deprecated libbson functionality (see &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1226&quot; title=&quot;Resolve json.cpp compile warnings introduced by deprecation of bson_as_json&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1226&quot;&gt;&lt;del&gt;CXX-1226&lt;/del&gt;&lt;/a&gt; for&lt;br/&gt;
details).  &quot;-Wno-error=deprecated-declarations&quot; will be removed as&lt;br/&gt;
part of the resolution of &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1056&quot; title=&quot;Add mechanism to disable deprecation warnings for a given section of code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1056&quot;&gt;&lt;del&gt;CXX-1056&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/438916803e0739f6c5972111ba4d14b0f060a358&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/438916803e0739f6c5972111ba4d14b0f060a358&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1398326" author="rassi@10gen.com" created="Sat, 1 Oct 2016 03:21:01 +0000"  >&lt;p&gt;See &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/541#discussion_r80521303&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/541#discussion_r80521303&lt;/a&gt; for further discussion.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="356454">CXX-1226</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="357856">CXX-1232</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="304646">CXX-979</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="441041">CXX-1447</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="386957">CXX-1348</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrartr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1392">Perl/CXX 2016-12-02</customfieldvalue>
    <customfieldvalue id="1601">Perl/CXX 2017-03-24</customfieldvalue>
    <customfieldvalue id="1647">Perl/CXX 2017-04-14</customfieldvalue>
    <customfieldvalue id="1675">Perl/CXX 2017-05-05</customfieldvalue>
    <customfieldvalue id="1715">Perl/CXX 2017-05-26</customfieldvalue>

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