<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:10:32 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-757] Unsigned comparison in _mongoc_matcher_op_compare_new() is always true</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-757</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The following error recently popped up in the &lt;a href=&quot;https://travis-ci.org/10gen-labs/mongo-php-driver-prototype/jobs/71836870#L1066&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;PHPC builds&lt;/a&gt; after &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bjori&quot; class=&quot;user-hover&quot; rel=&quot;bjori&quot;&gt;bjori&lt;/a&gt; added &lt;tt&gt;-Werror&lt;/tt&gt; to our build flags (&lt;a href=&quot;https://github.com/10gen-labs/mongo-php-driver-prototype/commit/8087ab6d97970e1e9162ce6798e244127dc12bbf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;home/travis/build/10gen-labs/mongo-php-driver-prototype/src/libmongoc/src/mongoc/mongoc-matcher-op.c:165:4: error: comparison of unsigned expression &amp;gt;= 0 is always true [-Werror=type-limits]&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I traced this back to &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/a07a0a12eba75b16371a2c060309c4320ff2c1de#diff-0252e1758ec4cd4f113669b69b800d65L84&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this commit&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;While we could suppress this error with &lt;tt&gt;[-Wno-type-limits]&lt;/tt&gt;, that might hide other errors, too. Some ideas tossed around in &lt;a href=&quot;http://arstechnica.com/civis/viewtopic.php?f=20&amp;amp;t=1130118&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this thread&lt;/a&gt; include adding an unused negative value to the enum to force a signed type to be used (which seems noisy) or to for a signed cast before the comparison. Alternatively, we can just do without the &lt;tt&gt;&amp;gt;= MONGOC_MATCHER_OPCODE_EQ&lt;/tt&gt; part of the assertion if we want to rely on the enum being unsigned and &lt;tt&gt;MONGOC_MATCHER_OPCODE_EQ&lt;/tt&gt; being zero.&lt;/p&gt;</description>
                <environment></environment>
        <key id="217789">CDRIVER-757</key>
            <summary>Unsigned comparison in _mongoc_matcher_op_compare_new() is always true</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="jmikola@mongodb.com">Jeremy Mikola</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Jul 2015 14:42:18 +0000</created>
                <updated>Wed, 12 Aug 2015 12:48:01 +0000</updated>
                            <resolved>Fri, 7 Aug 2015 20:56:39 +0000</resolved>
                                    <version>1.1.9</version>
                                    <fixVersion>1.2-beta0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="999819" author="xgen-internal-githook" created="Fri, 7 Aug 2015 20:56:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@emptysquare.net&apos;}
&lt;p&gt;Message: Merge pull request #256 from jmikola/cdriver-757&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-757&quot; title=&quot;Unsigned comparison in _mongoc_matcher_op_compare_new() is always true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-757&quot;&gt;&lt;del&gt;CDRIVER-757&lt;/del&gt;&lt;/a&gt;: Suppress GCC warning for enum range check&lt;br/&gt;
Branch: 1.2.0-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/a48d38b252e6e77dd9c6b0245a48e2da1282c804&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/a48d38b252e6e77dd9c6b0245a48e2da1282c804&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="999818" author="xgen-internal-githook" created="Fri, 7 Aug 2015 20:56:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-757&quot; title=&quot;Unsigned comparison in _mongoc_matcher_op_compare_new() is always true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-757&quot;&gt;&lt;del&gt;CDRIVER-757&lt;/del&gt;&lt;/a&gt;: Suppress GCC warning for enum range check&lt;/p&gt;

&lt;p&gt;If the enum is compiled as an unsigned integer, this could trigger a type-limits warning (which might disrupt a -Werror build).&lt;br/&gt;
Branch: 1.2.0-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/8fe874241113c683d383acb20b19b7a667649f8a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/8fe874241113c683d383acb20b19b7a667649f8a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="993195" author="jmikola@gmail.com" created="Thu, 30 Jul 2015 18:32:55 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/256&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/256&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="971564" author="xgen-internal-githook" created="Tue, 21 Jul 2015 22:13:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: Don&apos;t build with -Werror until &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-757&quot; title=&quot;Unsigned comparison in _mongoc_matcher_op_compare_new() is always true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-757&quot;&gt;&lt;del&gt;CDRIVER-757&lt;/del&gt;&lt;/a&gt; is resolved&lt;/p&gt;

&lt;p&gt;Reverts 8087ab6d97970e1e9162ce6798e244127dc12bbf temporarily&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen-labs/mongo-php-driver-prototype/commit/3051d3b18469751db1256559714ae99172613b01&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen-labs/mongo-php-driver-prototype/commit/3051d3b18469751db1256559714ae99172613b01&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|hsbbqv:</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="640">C Driver 2015Q2 sprint 5</customfieldvalue>

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