<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>https://developer.apple.com/library/content/documentation/Darwin/Conceptual/64bitPorting/building/building.html</div>
<div> </div>
<div>suggests that some flags are less useful than others in terms of warnings produced - some flags produce a plethora of spurious and irrelevant warnings</div>
<div> </div>
<div>Is that maybe part of your problem?</div>
<div> </div>
<div>Peter</div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 14. Oktober 2016 um 12:15 Uhr<br/>
<b>Von:</b> "Manfred Bergmann" <manfred.bergmann@me.com><br/>
<b>An:</b> "SWORD Developers' Collaboration Forum" <sword-devel@crosswire.org><br/>
<b>Betreff:</b> Re: [sword-devel] How do you make the Sword framework work in 64bit mode? (My compiler is giving me hundreds of warnings.)</div>
<div name="quoted-content">
<div>
<div>I’m also having tons of warnings when compiling SWORD in Xcode for 64 bit.</div>
<div>The precision warnings can be ignored IMO. But due to the sheer number of warnings it’s very hard to detect warnings that shouldn’t be ignored.</div>
<div> </div>
<div>Btw: there is a Objective-C wrapper for the SWORD library under bindings/objc which I maintain and use in Eloquent.</div>
<div>AFAIK some form of the wrapper in used in PS.</div>
<div>It would be great if efforts could be shared in using only one codebase.</div>
<div> </div>
<div> </div>
<div> </div>
<div>Manfred</div>
<div> </div>
<div>
<blockquote>
<div>Am 13.10.2016 um 22:30 schrieb TS <<a href="mailto:outofthecube@icloud.com" onclick="parent.window.location.href='outofthecube@icloud.com'; return false;" target="_blank">outofthecube@icloud.com</a>>:</div>
<div>
<div>
<div> So, Xcode gives me hundreds of warnings when I try to build for 64 bit mode. I've also tried searching the mailing list so I see that some people earlier in the year may be have seen the same warnings (for PocketSword), so I think I better understand why I've seen that some of the libraries were updated(I don't know if all were updated or ?). However, I'm still getting errors and some of it is in the Sword framework. My impression so far of what's going on is that Xcode is telling me is that there are datatypes which are not being converted properly. I think this is happening due to things like "int" and "long" not occupying the same amount of space or something like they use to do in 32 bit and so need a casting in order to be converted properly?</div>
<div> An example is listkey.h at line 147 in which "index" is a "long", but then setToElement is for an "int".</div>
<div> Another is swbuf.h at line 448 "...<span style="color: rgb(187,44,162);">const</span><span> { </span><span style="color: rgb(187,44,162);">unsigned</span><span> </span><span style="color: rgb(187,44,162);">int</span><span> psize = </span><span style="color: rgb(61,29,129);">strlen</span><span>(postfix); ..." <span style="font-size: 15.0px;font-family: "Helvetica Neue" , Helvetica , sans-serif;">where Xcode warns that there's a loss of precision. That an unsigned long is converting to an unsigned int. I think that unsigned long occupies 64 bits when run in 64 bit mode, but the int stays in 32 bits when run in 64 bit mode.</span></span></div>
<div><span><span style="font-size: 15.0px;font-family: "Helvetica Neue" , Helvetica , sans-serif;"> I have compared the Sword framework that it's using against the last stable one and there's doesn't seem to be changes to address the issues I'm seeing.</span></span></div>
<div><span><span style="font-size: 15.0px;font-family: "Helvetica Neue" , Helvetica , sans-serif;"> Any suggestions on how to proceed?</span></span></div>
<div> </div>
<div><span><span style="font-size: 15.0px;font-family: "Helvetica Neue" , Helvetica , sans-serif;">-TS</span></span></div>
</div>
_______________________________________________<br/>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" onclick="parent.window.location.href='sword-devel@crosswire.org'; return false;" target="_blank">sword-devel@crosswire.org</a><br/>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br/>
Instructions to unsubscribe/change your settings at above page</div>
</blockquote>
</div>
<br/>
_______________________________________________ sword-devel mailing list: sword-devel@crosswire.org <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a> Instructions to unsubscribe/change your settings at above page</div>
</div>
</div>
</div>
</div></div></body></html>