<div dir="ltr">Hello folks,<div><br></div><div>I'm working on a project that uses clang and it seems that I cannot compile the CSCommon.h header inside the Apple SDKs. The error I get is:</div><div><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p dir="ltr"><font color="#000000" face="PT Sans, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:14px;line-height:16.8px">enumerator value evaluates to -2147483648, which cannot be narrowed to type uint32_t (aka unsingned int)</span></font></p><p><font color="#000000" face="PT Sans, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:14px;line-height:16.8px">Around the source code:</span></font></p>typedef CF_OPTIONS(uint32_t, SecCSFlags) {<br> kSecCSDefaultFlags = 0, /* no particular flags (default behavior) */</div><div dir="ltr"><br> kSecCSConsiderExpiration = 1 << 31, /* consider expired certificates invalid */<br> kSecCSEnforceRevocationChecks = 1 << 30, /* force revocation checks regardless of preference settings */<br> kSecCSNoNetworkAccess = 1 << 29, /* do not use the network, cancels "kSecCSEnforceRevocationChecks" */<br> kSecCSReportProgress = 1 << 28, /* make progress report call-backs when configured */<br> kSecCSCheckTrustedAnchors = 1 << 27, /* build certificate chain to system trust anchors, not to any self-signed certificate */<br>};<p><font color="#000000" face="PT Sans, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:14px;line-height:16.8px">clang revision 253884</span></font></p><p><font color="#000000" face="PT Sans, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size:14px;line-height:16.8px">Previously, we just hacked around this with:</span></font></p><p>#undef CF_OPTIONS<br>#define CF_OPTIONS(_type, _name) _type _name; enum</p><p>But alas some of our users are still reporting the error.</p><p>Has anyone encountered this before? Is there a specific LangOpt I need to set?</p><p>Many thanks in advance.</p><p dir="ltr">--</p><p dir="ltr">Joshua Gerrard<br> JUCE Software Developer<br></p><p dir="ltr"><font size="2"><i>ROLI’s </i><a href="http://www.telegraph.co.uk/luxury/design/31520/the-seaboard-grand-piano-wins-designs-of-the-year-2014-award.html" target="_blank"><i><font color="#1155cc">award-winning</font></i></a><i> Seaboard GRAND, celebrated as the “</i><a href="http://edition.cnn.com/2013/09/27/tech/innovation/hans-zimmer-seaboard-future-piano/" target="_blank"><i><font color="#1155cc">piano of the future</font></i></a><i>”, is now joined by the </i><a href="https://www.youtube.com/watch?v=fGr7VbDiRNw" target="_blank"><i><font color="#1155cc">Seaboard RISE</font></i></a><i>, “</i><a href="http://www.soundonsound.com/news?NewsID=18726" target="_blank"><i><font color="#1155cc">every bit as slimline and attractive as its bigger brother</font></i></a><i>”. The press is hailing the Seaboard RISE as “</i><a href="http://www.wired.co.uk/news/archive/2015-09/10/seaboard-rise-digital-keyboard-launch-uk-price" target="_blank"><i><font color="#1155cc">innovative</font></i></a><i>”, “</i><a href="http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/" target="_blank"><i><font color="#1155cc">expressive</font></i></a><i>”, “</i><a href="http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/" target="_blank"><i><font color="#1155cc">accessible</font></i></a><i>”, and “</i><a href="http://www.slashgear.com/roli-seaboard-rise-is-like-3d-touch-for-musicians-11404216/" target="_blank"><i><font color="#1155cc">a keyboard controller that does to piano keys what 3D touch does to the iPhone</font></i></a><i>”. Now available for preorder at </i><a href="http://www.roli.com/" target="_blank"><i><font color="#1155cc">www.roli.com</font></i></a><i>.</i></font><br><br></p></div></div></div></div></div></div>
</div></div>