<div dir="ltr"><div dir="ltr">Hi Lonni,<div>Both were fixed in 2012 by replacing false with NULL.</div><div>Regards, Laurens.</div><div><br></div><div><div>Revision: 5743d30dc1614ce4ee809cbc96d1b09c3778c4c2</div><div>Author: Robert Osfield <<a href="mailto:robert@openscenegraph.com">robert@openscenegraph.com</a>></div><div>Date: 2/9/2012 4:54:13 PM</div><div>Message:</div><div>From Olaf Flebbe, "there are two ocurrences where pointer to bool is mixed with bool. Fixes warnings on MacOSX with llvm.</div><div><br></div><div>diff --git a/src/osg/State.cpp b/src/osg/State.cpp</div><div>index 0b88d63..2137bbd 100644</div><div>--- a/src/osg/State.cpp</div><div>+++ b/src/osg/State.cpp</div><div>@@ -109,7 +109,7 @@ State::State():</div><div>        }</div><div>    }</div><div><br></div><div>-    _abortRenderingPtr = false;</div><div>+    _abortRenderingPtr = NULL;</div><div><br></div><div>    _checkGLErrors = ONCE_PER_FRAME;</div><div><br></div><div>@@ -689,7 +689,7 @@ bool State::getLastAppliedTextureMode(unsigned int unit,Stat</div><div><br></div><div> const StateAttribute* State::getLastAppliedTextureAttribute(unsigned int unit,S</div><div> {</div><div>-    if (unit>=_textureAttributeMapList.size()) return false;</div><div>+    if (unit>=_textureAttributeMapList.size()) return NULL;</div><div>    return getLastAppliedAttribute(_textureAttributeMapList[unit],type,member);</div><div> }</div><div><br></div><div>"</div><div>----</div><div>Modified: src/osg/State.cpp</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 26, 2018 at 10:59 PM <<a href="mailto:Lonnie.CTR.Souder@faa.gov">Lonnie.CTR.Souder@faa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_8433350132019520181divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0"><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:13.3333px">Hello, I am trying
 to upgrade some image generators and found that we can no longer compile our code.  In fact I cannot compile OSG 3.0.1 anymore.  Here is the error I getting:</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span style="font-family:monospace"><span style="font-weight:bold"><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-family:monospace"><span style="font-weight:bold"><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-family:monospace"><span style="font-weight:bold">/data/oldproject/OpenSceneGraph/src/osg/State.cpp:</span> In constructor ‘<span style="font-weight:bold">osg::State::State()</span>’:
<br>
<span style="font-weight:bold">/data/<span style="font-family:monospace;font-size:16px;font-weight:700">oldproject</span>/OpenSceneGraph/src/osg/State.cpp:112:26:</span>
<span style="font-weight:bold;color:rgb(255,84,84)">error: </span>cannot convert ‘<span style="font-weight:bold">bool</span>’ to ‘<span style="font-weight:bold">bool*</span>’ in assignment
<br>
    _abortRenderingPtr = <span style="font-weight:bold;color:rgb(255,84,84)">false</span>;
<br>
                         <span style="font-weight:bold;color:rgb(255,84,84)">^~~~~</span>
<br>
<span style="font-weight:bold">/data/<span style="font-family:monospace;font-size:16px;font-weight:700">oldproject</span>/OpenSceneGraph/src/osg/State.cpp:</span> In member function ‘<span style="font-weight:bold">const osg::StateAttribute* osg::State::getLastAppliedTextureAttribute(unsigned
 int, osg::StateAttribute::Type, unsigned int) const</span>’: <br>
<span style="font-weight:bold">/data/<span style="font-family:monospace;font-size:16px;font-weight:700">oldproject</span>/OpenSceneGraph/src/osg/State.cpp:692:55:</span>
<span style="font-weight:bold;color:rgb(255,84,84)">error: </span>cannot convert ‘<span style="font-weight:bold">bool</span>’ to ‘<span style="font-weight:bold">const osg::StateAttribute*</span>’ in return
<br>
    if (unit>=_textureAttributeMapList.size()) return <span style="font-weight:bold;color:rgb(255,84,84)">
false</span>; <br>
                                                      <span style="font-weight:bold;color:rgb(255,84,84)">^~~~~</span>
<br>
src/osg/CMakeFiles/osg.dir/build.make:2702: recipe for target 'src/osg/CMakeFiles/osg.dir/State.o' failed
<br>
make[2]: *** [src/osg/CMakeFiles/osg.dir/State.o] Error 1 <br>
CMakeFiles/Makefile2:300: recipe for target 'src/osg/CMakeFiles/osg.dir/all' failed
<br>
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2 <br>
Makefile:129: recipe for target 'all' failed <br>
make: *** [all] Error 2<br>
<br>
</span><br>
</p>
<p style="margin-top:0;margin-bottom:0">We made an effort to upgrade our software to use the latest and greatest OSG but failed because of some low level code issues which we just don't understand.  We plan to do a tech refresh.  This is just a band aid to
 keep things usable.</p>
<div id="m_8433350132019520181Signature">
<div class="m_8433350132019520181BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="m_8433350132019520181PlainText"><br>
</div>
</span></font></div>
</div>
</div>
</div>

_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>