[PATCH] Suppress Clang warning 'register' storage class specifier is deprecated

23 views
Skip to first unread message

Simon Atanasyan

unread,
Mar 17, 2015, 12:11:31 PM3/17/15
to mcli...@googlegroups.com
Hi,

I try to compile MCLinker using the Clang but get the following warnings:
[[
Script/ScriptScanner.cc:2499:6: error: 'register' storage class
specifier is deprecated [-Werror,-Wdeprecated-register]
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
...
]]

The attached patch suppress this warning for the ScriptScanner.ll file
only. Is it OK to commit this patch?

Regards,
Simon Atanasyan
register-depricated-warning.patch

Pete Chou

unread,
Mar 17, 2015, 11:44:08 PM3/17/15
to Simon Atanasyan, mcli...@googlegroups.com
LGTM.

Thanks,
Pete


--
You received this message because you are subscribed to the Google Groups "MCLinker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mclinker+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Simon Atanasyan

unread,
Mar 18, 2015, 7:09:23 AM3/18/15
to Pete Chou, mcli...@googlegroups.com
Committed. Thanks for review.
Reply all
Reply to author
Forward
0 new messages