<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:21:57 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-4789] prevent -Werror=conversion with GCC 12</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4789</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Tracks: &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/1479/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/1479/&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2509990">CDRIVER-4789</key>
            <summary>prevent -Werror=conversion with GCC 12</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="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 Nov 2023 20:27:21 +0000</created>
                <updated>Wed, 29 Nov 2023 20:44:46 +0000</updated>
                            <resolved>Wed, 29 Nov 2023 20:44:46 +0000</resolved>
                                                    <fixVersion>1.25.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="5913757" author="xgen-internal-githook" created="Wed, 29 Nov 2023 20:44:33 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Roland Hieber&apos;, &apos;email&apos;: &apos;rohieb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;rohieb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4789&quot; title=&quot;prevent -Werror=conversion with GCC 12&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4789&quot;&gt;&lt;del&gt;CDRIVER-4789&lt;/del&gt;&lt;/a&gt; libbson: prevent -Werror=conversion with GCC 12 (#1479)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;libbson: prevent -Werror=conversion with GCC 12&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Building fails with GCC 12.3:&lt;/p&gt;

&lt;p&gt;    bson-iter.h:434:33: error: conversion from &apos;int64_t&apos; &lt;/p&gt;
{aka &apos;long long int&apos;}
&lt;p&gt; to &apos;__suseconds_t&apos; &lt;/p&gt;
{aka &apos;long int&apos;}
&lt;p&gt; may change value &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=conversion&amp;#93;&lt;/span&gt;&lt;br/&gt;
    434 | tv-&amp;gt;tv_usec = (value % 1000) * 1000;&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; ~~~~~~~~~~~~~~&lt;sub&gt;^&lt;/sub&gt;~~~~&lt;br/&gt;
    cc1plus: all warnings being treated as errors&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;Do the same as with tv-&amp;gt;tv_sec, and explicitely cast it to suseconds_t&lt;br/&gt;
on non-Win32 systems and to long on Win32.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;use `time_t` in assignment to `tv_sec`&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This matches specificiation in POSIX 2008.&lt;br/&gt;
Branch: r1.25&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/02320e726906748c5d8be9316af564a4db9faa8a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/02320e726906748c5d8be9316af564a4db9faa8a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5913756" author="xgen-internal-githook" created="Wed, 29 Nov 2023 20:44:03 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Roland Hieber&apos;, &apos;email&apos;: &apos;rohieb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;rohieb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4789&quot; title=&quot;prevent -Werror=conversion with GCC 12&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4789&quot;&gt;&lt;del&gt;CDRIVER-4789&lt;/del&gt;&lt;/a&gt; libbson: prevent -Werror=conversion with GCC 12 (#1479)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;libbson: prevent -Werror=conversion with GCC 12&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Building fails with GCC 12.3:&lt;/p&gt;

&lt;p&gt;    bson-iter.h:434:33: error: conversion from &apos;int64_t&apos; &lt;/p&gt;
{aka &apos;long long int&apos;}
&lt;p&gt; to &apos;__suseconds_t&apos; &lt;/p&gt;
{aka &apos;long int&apos;}
&lt;p&gt; may change value &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=conversion&amp;#93;&lt;/span&gt;&lt;br/&gt;
    434 | tv-&amp;gt;tv_usec = (value % 1000) * 1000;&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; ~~~~~~~~~~~~~~&lt;sub&gt;^&lt;/sub&gt;~~~~&lt;br/&gt;
    cc1plus: all warnings being treated as errors&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;Do the same as with tv-&amp;gt;tv_sec, and explicitely cast it to suseconds_t&lt;br/&gt;
on non-Win32 systems and to long on Win32.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;use `time_t` in assignment to `tv_sec`&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This matches specificiation in POSIX 2008.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/5e27ad6b21f1cba6c08120e6123f317bbfc67e5c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/5e27ad6b21f1cba6c08120e6123f317bbfc67e5c&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_23812" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Assigned Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26444"><![CDATA[C Drivers]]></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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i2jwbw:</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>