<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:38 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>[CDRIVER-2249] Thousands of warnings with MSVC like &quot;&apos;4&apos; bytes padding added after data member&quot;</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2249</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;As a consequence of adding the ENABLE_MAINTAINER_FLAGS option to CMakeLists.txt:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/34c5c96985eb9bdcb669502cf7cd126fb21c4248&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/34c5c96985eb9bdcb669502cf7cd126fb21c4248&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are now thousands of worthless warnings like this when compiling with MSVC in our Evergreen build:&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: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/34c5c96985eb9bdcb669502cf7cd126fb21c4248&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: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;         c:\cygwin\home\administrator\mongo-c-driver\src\libbson\src\bson\bson-types.h(297): warning C4820: &apos;&amp;lt;unnamed-tag&amp;gt;&apos;: &apos;4&apos; bytes padding added after data member &apos;data_len&apos; [C:\cygwin\home\Administrator\mongo-c-driver\src\libbson\test-libbson.vcxproj]&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;The problem seems to be MSVC can accept the &quot;-Wall&quot; flag, but it&apos;s badly implemented. MSVC shouldn&apos;t warn about code in system headers, but it does, and perhaps these &quot;padding&quot; warnings are completely spurious no matter where they originate.&lt;/p&gt;

&lt;p&gt;MSVC doesn&apos;t accept any other GCC-style warning options like &quot;-Wformat&quot;, so it&apos;s a waste of time for CMake to check each of them.&lt;/p&gt;

&lt;p&gt;To resolve this, let&apos;s skip the entire warning-flags configuration step if the compiler is MSVC.&lt;/p&gt;</description>
                <environment></environment>
        <key id="418600">CDRIVER-2249</key>
            <summary>Thousands of warnings with MSVC like &quot;&apos;4&apos; bytes padding added after data member&quot;</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="13201">Fixed</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 Aug 2017 21:44:38 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:31 +0000</updated>
                            <resolved>Wed, 23 Aug 2017 16:14:56 +0000</resolved>
                                    <version>1.7.0</version>
                                    <fixVersion>1.8.0</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1670908" author="ramon.fernandez" created="Tue, 12 Sep 2017 18:32:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: u&apos;ajdavis&apos;, &apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message:&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2249&quot; title=&quot;Thousands of warnings with MSVC like &amp;quot;&amp;#39;4&amp;#39; bytes padding added after data member&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2249&quot;&gt;&lt;del&gt;CDRIVER-2249&lt;/del&gt;&lt;/a&gt; don&apos;t set maintainer flags with MSVC&lt;/p&gt;

&lt;p&gt;MSVC accepts &quot;-Wall&quot; but it results in thousands of spurious warnings.&lt;br/&gt;
It doesn&apos;t accept any other GCC-style flags like &quot;-Wformat&quot;, so CMake&lt;br/&gt;
wastes time checking them all. To solve both problems, just skip the&lt;br/&gt;
maintainer flags configuration with MSVC.&lt;br/&gt;
Branch:master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/b9f2ff2426784362b9521a72261c1470013a8101&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/b9f2ff2426784362b9521a72261c1470013a8101&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1670838" author="ramon.fernandez" created="Tue, 12 Sep 2017 18:31:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: u&apos;ajdavis&apos;, &apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message:&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2249&quot; title=&quot;Thousands of warnings with MSVC like &amp;quot;&amp;#39;4&amp;#39; bytes padding added after data member&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2249&quot;&gt;&lt;del&gt;CDRIVER-2249&lt;/del&gt;&lt;/a&gt; don&apos;t set maintainer flags with MSVC&lt;/p&gt;

&lt;p&gt;MSVC accepts &quot;-Wall&quot; but it results in thousands of spurious warnings.&lt;br/&gt;
It doesn&apos;t accept any other GCC-style flags like &quot;-Wformat&quot;, so CMake&lt;br/&gt;
wastes time checking them all. To solve both problems, just skip the&lt;br/&gt;
maintainer flags configuration with MSVC.&lt;br/&gt;
Branch:master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/28077f6ff1f1dfd523d4fdda619dae2c9b4347a3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/28077f6ff1f1dfd523d4fdda619dae2c9b4347a3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1655140" author="jesse" created="Wed, 23 Aug 2017 16:19:17 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/libbson/commit/28077f6ff1f1dfd523d4fdda619dae2c9b4347a3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/28077f6ff1f1dfd523d4fdda619dae2c9b4347a3&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/b9f2ff2426784362b9521a72261c1470013a8101&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/b9f2ff2426784362b9521a72261c1470013a8101&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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|ht54rb:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>