[
https://issues.apache.org/jira/browse/MESOS-2550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497694#comment-14497694
]
Till Toenshoff commented on MESOS-2550:
---------------------------------------
commit f6620f851f635b3346c6ebf878152f38b3932ad9
Author: Cody Maloney <[email protected]>
Date: Wed Apr 15 19:47:44 2015 +0200
Added -Wno-unused-local-typedef for clang 3.6.
Review: https://reviews.apache.org/r/32749
commit 06dd75ce37ce3ba8466c3a3d90e0d12c0a308f4f
Author: Cody Maloney <[email protected]>
Date: Wed Apr 15 19:47:11 2015 +0200
libprocess: Added -Wno-unused-local-typedef for clang 3.6
Review: https://reviews.apache.org/r/32748
commit 6da1d4ec25e7749bae8680ce62cb22b5a73fa047
Author: Cody Maloney <[email protected]>
Date: Wed Apr 15 19:46:15 2015 +0200
libprocess: Placed noreturn attribute correctly for C11.
Places bundled libev noreturn attribute correctly for C11.
The bundled libev uses different noreturn attributes based on whether
it is compiled with C11 or not. The C11 codepath places the noreturn
attribute in an incorrect (but accepted by GCC) location. Move it to
the standard location which is accepted by all supported compilers.
Review: https://reviews.apache.org/r/32747
> Mesos doesn't compile with clang 3.6
> ------------------------------------
>
> Key: MESOS-2550
> URL: https://issues.apache.org/jira/browse/MESOS-2550
> Project: Mesos
> Issue Type: Improvement
> Components: build
> Affects Versions: 0.22.0
> Environment: ArchLinux with Clang 3.6
> Reporter: Cody Maloney
> Assignee: Cody Maloney
>
> The bundled libev fails to compile with the error:
> {code}
> ev.c:970:42: error: '_Noreturn' keyword must precede function declarator
> ecb_inline void ecb_unreachable (void) ecb_noreturn;
> ^~~~~~~~~~~~
> _Noreturn
> {code}
> Can be patched by moving the noreturn to earlier in the line / where C++11
> noreturn attributes go.
> Bundled boost fails with errors like:
> {code}
> ../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/concept_check.hpp:653:11:
> error: unused typedef
> 'boost_concept_check653' [-Werror,-Wunused-local-typedef]
> BOOST_CONCEPT_ASSERT((InputIterator<const_iterator>));
> ^
> {code}
> Can be fixed by adding '-Wno-unused-local-typedef' if we detect clang 3.6
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)