[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    Re: [cfe-dev] CSCommon.h fails to compile (Mac OS X 10.11)
From:       "Robinson, Paul via cfe-dev" <cfe-dev () lists ! llvm ! org>
Date:       2015-11-30 16:47:35
Message-ID: E3B07FDB86BFF041819DC057DEED8FEAC834B103 () USCULXMSG08 ! am ! sony ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

Sorry, I have no idea how that works.  There ought to be some way to control the \
                diagnostics, I just don't know how.
--paulr

From: Joshua Gerrard [mailto:joshua.gerrard@roli.com]
Sent: Monday, November 30, 2015 7:45 AM
To: Robinson, Paul
Cc: Anton Smirnov via cfe-dev
Subject: Re: [cfe-dev] CSCommon.h fails to compile (Mac OS X 10.11)

Thanks! Does this still apply if I'm just using the clang API? I don't currently pass \
any CLI-esk string arguments to clang anywhere (that I know of).


--
Joshua Gerrard
JUCE Software Developer

ROLI's award-winning<http://www.telegraph.co.uk/luxury/design/31520/the-seaboard-grand-piano-wins-designs-of-the-year-2014-award.html> \
Seaboard GRAND, celebrated as the "piano of the \
future<http://edition.cnn.com/2013/09/27/tech/innovation/hans-zimmer-seaboard-future-piano/>", \
is now joined by the Seaboard RISE<https://www.youtube.com/watch?v=fGr7VbDiRNw>, \
"every bit as slimline and attractive as its bigger \
brother<http://www.soundonsound.com/news?NewsID=18726>". The press is hailing the \
Seaboard RISE as "innovative<http://www.wired.co.uk/news/archive/2015-09/10/seaboard-rise-digital-keyboard-launch-uk-price>", \
"expressive<http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/>", \
"accessible<http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/>", \
and "a keyboard controller that does to piano keys what 3D touch does to the \
iPhone<http://www.slashgear.com/roli-seaboard-rise-is-like-3d-touch-for-musicians-11404216/>". \
Now available for preorder at www.roli.com<http://www.roli.com/>.

On 30 November 2015 at 15:17, Robinson, Paul \
<Paul_Robinson@playstation.sony.com<mailto:Paul_Robinson@playstation.sony.com>> \
wrote: It's a warning that's set to be treated as an error by default (as \
–Werror=c++11-narrowing). On Linux I can use –Wno-c++11-narrowing and it gets rid \
of the error.  If you want it to be a warning instead of an error you can say \
                –Wno-error=c++11-narrowing instead.
--paulr

From: Joshua Gerrard [mailto:joshua.gerrard@roli.com<mailto:joshua.gerrard@roli.com>]
Sent: Monday, November 30, 2015 3:17 AM
To: Robinson, Paul; Anton Smirnov via cfe-dev
Subject: Re: [cfe-dev] CSCommon.h fails to compile (Mac OS X 10.11)

(Resync with mailing list)

Thanks!

It comes through as an error rather than a warning though, so we can't simply ignore \
/ disable it.

--
Joshua Gerrard
JUCE Software Developer

ROLI's award-winning<http://www.telegraph.co.uk/luxury/design/31520/the-seaboard-grand-piano-wins-designs-of-the-year-2014-award.html> \
Seaboard GRAND, celebrated as the "piano of the \
future<http://edition.cnn.com/2013/09/27/tech/innovation/hans-zimmer-seaboard-future-piano/>", \
is now joined by the Seaboard RISE<https://www.youtube.com/watch?v=fGr7VbDiRNw>, \
"every bit as slimline and attractive as its bigger \
brother<http://www.soundonsound.com/news?NewsID=18726>". The press is hailing the \
Seaboard RISE as "innovative<http://www.wired.co.uk/news/archive/2015-09/10/seaboard-rise-digital-keyboard-launch-uk-price>", \
"expressive<http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/>", \
"accessible<http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/>", \
and "a keyboard controller that does to piano keys what 3D touch does to the \
iPhone<http://www.slashgear.com/roli-seaboard-rise-is-like-3d-touch-for-musicians-11404216/>". \
Now available for preorder at www.roli.com<http://www.roli.com/>.



On 28 November 2015 at 17:54, Robinson, Paul \
<Paul_Robinson@playstation.sony.com<mailto:Paul_Robinson@playstation.sony.com>> \
wrote: The diagnostic probably said [-Wc++11-narrowing] so try \
–Wno-c++11-narrowing.  Better to get the header fixed, though:

> kSecCSConsiderExpiration = 1 << 31, /* consider expired certificates invalid */
A bug in the header, which you could report to Apple.  That should be '1u << 31' \
                given that the base type is uint32_t.
--paulr

From: cfe-dev [mailto:cfe-dev-bounces@lists.llvm.org<mailto:cfe-dev-bounces@lists.llvm.org>] \
                On Behalf Of Joshua Gerrard via cfe-dev
Sent: Thursday, November 26, 2015 6:02 AM
To: Anton Smirnov via cfe-dev
Subject: [cfe-dev] CSCommon.h fails to compile (Mac OS X 10.11)

Hello folks,

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:

enumerator value evaluates to -2147483648<tel:2147483648>, which cannot be narrowed \
to type uint32_t (aka unsingned int)

Around the source code:
typedef CF_OPTIONS(uint32_t, SecCSFlags) {
    kSecCSDefaultFlags = 0, /* no particular flags (default behavior) */

    kSecCSConsiderExpiration = 1 << 31, /* consider expired certificates invalid */
    kSecCSEnforceRevocationChecks = 1 << 30, /* force revocation checks regardless of \
preference settings */  kSecCSNoNetworkAccess = 1 << 29,            /* do not use the \
network, cancels "kSecCSEnforceRevocationChecks"  */  kSecCSReportProgress = 1 << 28, \
/* make progress report call-backs when configured */  kSecCSCheckTrustedAnchors = 1 \
<< 27, /* build certificate chain to system trust anchors, not to any self-signed \
certificate */ };

clang revision 253884

Previously, we just hacked around this with:

#undef CF_OPTIONS
#define CF_OPTIONS(_type, _name) _type _name; enum

But alas some of our users are still reporting the error.

Has anyone encountered this before? Is there a specific LangOpt I need to set?

Many thanks in advance.

--

Joshua Gerrard
JUCE Software Developer

ROLI's award-winning<http://www.telegraph.co.uk/luxury/design/31520/the-seaboard-grand-piano-wins-designs-of-the-year-2014-award.html> \
Seaboard GRAND, celebrated as the "piano of the \
future<http://edition.cnn.com/2013/09/27/tech/innovation/hans-zimmer-seaboard-future-piano/>", \
is now joined by the Seaboard RISE<https://www.youtube.com/watch?v=fGr7VbDiRNw>, \
"every bit as slimline and attractive as its bigger \
brother<http://www.soundonsound.com/news?NewsID=18726>". The press is hailing the \
Seaboard RISE as "innovative<http://www.wired.co.uk/news/archive/2015-09/10/seaboard-rise-digital-keyboard-launch-uk-price>", \
"expressive<http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/>", \
"accessible<http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/>", \
and "a keyboard controller that does to piano keys what 3D touch does to the \
iPhone<http://www.slashgear.com/roli-seaboard-rise-is-like-3d-touch-for-musicians-11404216/>". \
Now available for preorder at www.roli.com<http://www.roli.com/>.


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Helvetica;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
	{font-family:Helvetica;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Sorry, \
I have no idea how that works.&nbsp; There ought to be some way to control the \
diagnostics, I just don't know how.<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">--paulr<o:p></o:p></span></p>
 <p class="MsoNormal"><a name="_MailEndCompose"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></a></p>
 <div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> \
Joshua Gerrard [mailto:joshua.gerrard@roli.com] <br>
<b>Sent:</b> Monday, November 30, 2015 7:45 AM<br>
<b>To:</b> Robinson, Paul<br>
<b>Cc:</b> Anton Smirnov via cfe-dev<br>
<b>Subject:</b> Re: [cfe-dev] CSCommon.h fails to compile (Mac OS X \
10.11)<o:p></o:p></span></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Thanks! Does this still apply if I'm just using the clang API? I \
don't currently pass any CLI-esk string arguments to clang anywhere (that I know \
of).<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p>--<br>
Joshua Gerrard<br>
JUCE Software Developer<o:p></o:p></p>
<p style="margin-bottom:12.0pt"><i><span \
style="font-size:10.0pt">ROLI's&nbsp;</span></i><span style="font-size:10.0pt"><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><span \
style="color:#1155CC">award-winning</span></i></a><i>&nbsp;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><span style="color:#1155CC">piano of the \
future</span></i></a><i>", is now joined by the&nbsp;</i><a \
href="https://www.youtube.com/watch?v=fGr7VbDiRNw" target="_blank"><i><span \
style="color:#1155CC">Seaboard  RISE</span></i></a><i>,&nbsp;"</i><a \
href="http://www.soundonsound.com/news?NewsID=18726" target="_blank"><i><span \
style="color:#1155CC">every bit as slimline and attractive as its bigger \
brother</span></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><span style="color:#1155CC">innovative</span></i></a><i>",  \
"</i><a href="http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/" \
target="_blank"><i><span style="color:#1155CC">expressive</span></i></a><i>", "</i><a \
href="http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/" \
target="_blank"><i><span style="color:#1155CC">accessible</span></i></a><i>",  and \
"</i><a href="http://www.slashgear.com/roli-seaboard-rise-is-like-3d-touch-for-musicians-11404216/" \
target="_blank"><i><span style="color:#1155CC">a keyboard&nbsp;controller that does \
to piano keys what 3D touch does to the iPhone</span></i></a><i>". Now available  for \
preorder at&nbsp;</i><a href="http://www.roli.com/" target="_blank"><i><span \
style="color:#1155CC">www.roli.com</span></i></a><i>.</i></span><o:p></o:p></p> \
</div> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 30 November 2015 at 15:17, Robinson, Paul &lt;<a \
href="mailto:Paul_Robinson@playstation.sony.com" \
target="_blank">Paul_Robinson@playstation.sony.com</a>&gt; wrote:<o:p></o:p></p> \
<div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">It's \
a warning that's set to be treated as an error by default (as \
–Werror=c&#43;&#43;11-narrowing).</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">On \
Linux I can use –Wno-c&#43;&#43;11-narrowing and it gets rid of the error.&nbsp; If \
you want it to be a warning  instead of an error you can say \
–Wno-error=c&#43;&#43;11-narrowing instead.</span><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">--paulr</span><o:p></o:p></p>
 <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a \
name="15158f83a2c2c2b5__MailEndCompose"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span></a><o:p></o:p></p>
 <div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> \
Joshua Gerrard [mailto:<a href="mailto:joshua.gerrard@roli.com" \
target="_blank">joshua.gerrard@roli.com</a>] <br>
<b>Sent:</b> Monday, November 30, 2015 3:17 AM<br>
<b>To:</b> Robinson, Paul; Anton Smirnov via cfe-dev<br>
<b>Subject:</b> Re: [cfe-dev] CSCommon.h fails to compile (Mac OS X \
10.11)</span><o:p></o:p></p> </div>
</div>
<div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">(Resync with mailing \
list)<o:p></o:p></p> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:9.5pt">Thanks!</span><o:p></o:p></p> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:9.5pt">&nbsp;</span><o:p></o:p></p> </div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:9.5pt">It comes through as an error rather than a warning though, so \
we can't simply ignore / disable it.</span><o:p></o:p></p> </div>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p>--<br>
Joshua Gerrard<br>
JUCE Software Developer<o:p></o:p></p>
<p style="margin-bottom:12.0pt"><i><span \
style="font-size:10.0pt">ROLI's&nbsp;</span></i><span style="font-size:10.0pt"><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><span \
style="color:#1155CC">award-winning</span></i></a><i>&nbsp;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><span style="color:#1155CC">piano of the \
future</span></i></a><i>", is now joined by the&nbsp;</i><a \
href="https://www.youtube.com/watch?v=fGr7VbDiRNw" target="_blank"><i><span \
style="color:#1155CC">Seaboard  RISE</span></i></a><i>,&nbsp;"</i><a \
href="http://www.soundonsound.com/news?NewsID=18726" target="_blank"><i><span \
style="color:#1155CC">every bit as slimline and attractive as its bigger \
brother</span></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><span style="color:#1155CC">innovative</span></i></a><i>",  \
"</i><a href="http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/" \
target="_blank"><i><span style="color:#1155CC">expressive</span></i></a><i>", "</i><a \
href="http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/" \
target="_blank"><i><span style="color:#1155CC">accessible</span></i></a><i>",  and \
"</i><a href="http://www.slashgear.com/roli-seaboard-rise-is-like-3d-touch-for-musicians-11404216/" \
target="_blank"><i><span style="color:#1155CC">a keyboard&nbsp;controller that does \
to piano keys what 3D touch does to the iPhone</span></i></a><i>". Now available  for \
preorder at&nbsp;</i><a href="http://www.roli.com/" target="_blank"><i><span \
style="color:#1155CC">www.roli.com</span></i></a><i>.</i></span><o:p></o:p></p> \
</div> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"> <div>
<div>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"> <div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p>&nbsp;<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On 28 \
November 2015 at 17:54, Robinson, Paul &lt;<a \
href="mailto:Paul_Robinson@playstation.sony.com" \
target="_blank">Paul_Robinson@playstation.sony.com</a>&gt; wrote:<o:p></o:p></p> \
<div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">The \
diagnostic probably said [-Wc&#43;&#43;11-narrowing] so try \
–Wno-c&#43;&#43;11-narrowing.&nbsp; Better to get the  header fixed, \
though:</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
 <p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">|
 </span>&nbsp; &nbsp; kSecCSConsiderExpiration = 1 &lt;&lt; 31, /* consider expired \
certificates invalid */<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">A \
bug in the header, which you could report to Apple.&nbsp; That should be '1u &lt;&lt; \
31' given that the base  type is uint32_t.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">--paulr</span><o:p></o:p></p>
 <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a \
name="15158f83a2c2c2b5_151581b99741f9f7_151581"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span></a><o:p></o:p></p>
 <div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> \
cfe-dev [mailto:<a href="mailto:cfe-dev-bounces@lists.llvm.org" \
target="_blank">cfe-dev-bounces@lists.llvm.org</a>] <b>On Behalf Of </b>Joshua \
Gerrard via cfe-dev<br> <b>Sent:</b> Thursday, November 26, 2015 6:02 AM<br>
<b>To:</b> Anton Smirnov via cfe-dev<br>
<b>Subject:</b> [cfe-dev] CSCommon.h fails to compile (Mac OS X \
10.11)</span><o:p></o:p></p> </div>
</div>
<div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello \
folks,<o:p></o:p></p> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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:<o:p></o:p></p> </div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p><span style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;;color:black">enumerator \
value evaluates to -<a href="tel:2147483648" target="_blank">2147483648</a>, which \
cannot be narrowed to type uint32_t (aka unsingned int)</span><o:p></o:p></p> \
<p><span style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;;color:black">Around \
the source code:</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">typedef \
CF_OPTIONS(uint32_t, SecCSFlags) {<br> &nbsp; &nbsp; kSecCSDefaultFlags = 0, /* no \
particular flags (default behavior) */<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br>
&nbsp; &nbsp; kSecCSConsiderExpiration = 1 &lt;&lt; 31, /* consider expired \
certificates invalid */<br> &nbsp; &nbsp; kSecCSEnforceRevocationChecks = 1 &lt;&lt; \
30, /* force revocation checks regardless of preference settings */<br> &nbsp; &nbsp; \
kSecCSNoNetworkAccess = 1 &lt;&lt; 29, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* do \
not use the network, cancels &quot;kSecCSEnforceRevocationChecks&quot; &nbsp;*/<br> \
&nbsp; &nbsp; kSecCSReportProgress = 1 &lt;&lt; 28, /* make progress report \
call-backs when configured */<br> &nbsp; &nbsp; kSecCSCheckTrustedAnchors = 1 \
&lt;&lt; 27, /* build certificate chain to system trust anchors, not to any \
self-signed certificate */<br> };<o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;;color:black">clang \
revision 253884</span><o:p></o:p></p> <p><span \
style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;;color:black">Previously, \
we just hacked around this with:</span><o:p></o:p></p> <p>#undef CF_OPTIONS<br>
#define CF_OPTIONS(_type, _name) _type _name; enum<o:p></o:p></p>
<p>But alas some of our users are still reporting the error.<o:p></o:p></p>
<p>Has anyone encountered this before? Is there a specific LangOpt I need to \
set?<o:p></o:p></p> <p>Many thanks in advance.<o:p></o:p></p>
<p>--<o:p></o:p></p>
<p>Joshua Gerrard<br>
JUCE Software Developer<o:p></o:p></p>
<p style="margin-bottom:12.0pt"><i><span \
style="font-size:10.0pt">ROLI's&nbsp;</span></i><span style="font-size:10.0pt"><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><span \
style="color:#1155CC">award-winning</span></i></a><i>&nbsp;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><span style="color:#1155CC">piano of the \
future</span></i></a><i>", is now joined by the&nbsp;</i><a \
href="https://www.youtube.com/watch?v=fGr7VbDiRNw" target="_blank"><i><span \
style="color:#1155CC">Seaboard  RISE</span></i></a><i>,&nbsp;"</i><a \
href="http://www.soundonsound.com/news?NewsID=18726" target="_blank"><i><span \
style="color:#1155CC">every bit as slimline and attractive as its bigger \
brother</span></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><span style="color:#1155CC">innovative</span></i></a><i>",  \
"</i><a href="http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/" \
target="_blank"><i><span style="color:#1155CC">expressive</span></i></a><i>", "</i><a \
href="http://createdigitalmusic.com/2015/09/new-roli-instrument-wants-make-expressive-control-mainstream/" \
target="_blank"><i><span style="color:#1155CC">accessible</span></i></a><i>",  and \
"</i><a href="http://www.slashgear.com/roli-seaboard-rise-is-like-3d-touch-for-musicians-11404216/" \
target="_blank"><i><span style="color:#1155CC">a keyboard&nbsp;controller that does \
to piano keys what 3D touch does to the iPhone</span></i></a><i>". Now available  for \
preorder at&nbsp;</i><a href="http://www.roli.com/" target="_blank"><i><span \
style="color:#1155CC">www.roli.com</span></i></a><i>.</i></span><o:p></o:p></p> \
</div> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> </div>
</div>
</blockquote>
</div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> </div>
</div>
</blockquote>
</div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> </div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</body>
</html>


[Attachment #4 (unknown)]

_______________________________________________
cfe-dev mailing list
cfe-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic