K 10 svn:author V 6 jbeich K 8 svn:date V 27 2018-10-28T09:12:04.327391Z K 7 svn:log V 2468 games/alephone: unbreak build with Clang 6 (C++14 by default) In file included from csdialogs_sdl.cpp:29: In file included from ../../Source_Files/Misc/sdl_dialogs.h:33: In file included from /usr/local/include/boost/function.hpp:70: In file included from /usr/local/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:47: In file included from /usr/local/include/boost/function/detail/function_iterate.hpp:14: In file included from /usr/local/include/boost/function/detail/maybe_include.hpp:15: /usr/local/include/boost/function/function_template.hpp:158:33: error: called object type 'nullptr_t' is not a function or function pointer BOOST_FUNCTION_RETURN((*f)(BOOST_FUNCTION_ARGS)); ^~~~ /usr/local/include/boost/function/function_template.hpp:80:36: note: expanded from macro 'BOOST_FUNCTION_RETURN' # define BOOST_FUNCTION_RETURN(X) X ^ /usr/local/include/boost/function/function_template.hpp:935:53: note: in instantiation of member function 'boost::detail::function::void_function_obj_invoker0::invoke' requested here { { &manager_type::manage }, &invoker_type::invoke }; ^ /usr/local/include/boost/function/function_template.hpp:724:13: note: in instantiation of function template specialization 'boost::function0::assign_to' requested here this->assign_to(f); ^ /usr/local/include/boost/function/function_template.hpp:1073:5: note: in instantiation of function template specialization 'boost::function0::function0' requested here base_type(f) ^ ../../Source_Files/Misc/sdl_widgets.h:1082:5: note: in instantiation of function template specialization 'boost::function::function' requested here , m_callback (NULL) ^ interface.cpp:3114:25: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing] SDL_Rect dst_rect = { (s->w - 640)/2, (s->h - 480)/2, 640, 480 }; ^~~~~~~~~~~~~~ interface.cpp:3114:25: note: insert an explicit cast to silence this issue SDL_Rect dst_rect = { (s->w - 640)/2, (s->h - 480)/2, 640, 480 }; ^~~~~~~~~~~~~~ static_cast( ) END