[cfe-dev] CSCommon.h fails to compile (Mac OS X 10.11)

Joshua Gerrard via cfe-dev cfe-dev at lists.llvm.org
Mon Nov 30 07:45:09 PST 2015


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 at 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 at 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 at 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 at 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, 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/>*.*
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151130/3ad4ac95/attachment.html>


More information about the cfe-dev mailing list