<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:08:11 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-2] platform_hacks.h functions require a cast from void * to char * in C++ compilers</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Compiling the drivers causes a compiler error on c++ compilers (or at least, g++):&lt;/p&gt;

&lt;p&gt;In file included from /home/orlando/projects/node-mongodb/mongo-c-driver/src/bson.h:6,&lt;br/&gt;
                 from ../bson.cc:4:&lt;br/&gt;
/home/orlando/projects/node-mongodb/mongo-c-driver/src/platform_hacks.h:24:2: error: #error must have a 64bit int type&lt;br/&gt;
In file included from /home/orlando/projects/node-mongodb/mongo-c-driver/src/bson.h:6,&lt;br/&gt;
                 from ../bson.cc:4:&lt;br/&gt;
/home/orlando/projects/node-mongodb/mongo-c-driver/src/platform_hacks.h: In function &apos;void bson_swap_endian64(void*, const void*)&apos;:&lt;br/&gt;
/home/orlando/projects/node-mongodb/mongo-c-driver/src/platform_hacks.h:50: error: invalid conversion from &apos;const void*&apos; to &apos;const char*&apos;&lt;br/&gt;
/home/orlando/projects/node-mongodb/mongo-c-driver/src/platform_hacks.h:51: error: invalid conversion from &apos;void*&apos; to &apos;char*&apos;&lt;br/&gt;
/home/orlando/projects/node-mongodb/mongo-c-driver/src/platform_hacks.h: In function &apos;void bson_swap_endian32(void*, const void*)&apos;:&lt;br/&gt;
/home/orlando/projects/node-mongodb/mongo-c-driver/src/platform_hacks.h:64: error: invalid conversion from &apos;const void*&apos; to &apos;const char*&apos;&lt;br/&gt;
/home/orlando/projects/node-mongodb/mongo-c-driver/src/platform_hacks.h:65: error: invalid conversion from &apos;void*&apos; to &apos;char*&apos;&lt;/p&gt;


&lt;p&gt;Explicitly casting the arguments of these functions to (char *) seems to make it work.&lt;/p&gt;</description>
                <environment>ubuntu server 32bit</environment>
        <key id="10940">CDRIVER-2</key>
            <summary>platform_hacks.h functions require a cast from void * to char * in C++ compilers</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="orlandov">Orlando Vazquez</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Dec 2009 18:38:39 +0000</created>
                <updated>Wed, 19 Oct 2016 14:14:43 +0000</updated>
                            <resolved>Thu, 3 Dec 2009 19:22:47 +0000</resolved>
                                                    <fixVersion>0.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="11270" author="auto" created="Thu, 3 Dec 2009 19:20:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Mathias Stearn&apos;, &apos;email&apos;: &apos;redbeard0531@gmail.com&apos;}
&lt;p&gt;Message: changes to compile with C++ code. &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2&quot; title=&quot;platform_hacks.h functions require a cast from void * to char * in C++ compilers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2&quot;&gt;&lt;del&gt;CDRIVER-2&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo-c-driver/commit/fe9cba1f43fe8803cafc71ae3309d7a613f9ffe4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo-c-driver/commit/fe9cba1f43fe8803cafc71ae3309d7a613f9ffe4&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|hrh74f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>13953</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>