K 10 svn:author V 6 jbeich K 8 svn:date V 27 2018-01-26T17:29:13.931969Z K 7 svn:log V 2046 devel/flatzebra: unbreak build with Clang 6 (C++14 by default) In file included from GameEngine.cpp:23: ../../src/flatzebra/GameEngine.h:412:23: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing] SDL_Rect rect = { x, y, width, height }; ^ ../../src/flatzebra/GameEngine.h:412:23: note: insert an explicit cast to silence this issue SDL_Rect rect = { x, y, width, height }; ^ static_cast( ) ../../src/flatzebra/GameEngine.h:412:26: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing] SDL_Rect rect = { x, y, width, height }; ^ ../../src/flatzebra/GameEngine.h:412:26: note: insert an explicit cast to silence this issue SDL_Rect rect = { x, y, width, height }; ^ static_cast( ) ../../src/flatzebra/GameEngine.h:412:29: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing] SDL_Rect rect = { x, y, width, height }; ^~~~~ ../../src/flatzebra/GameEngine.h:412:29: note: insert an explicit cast to silence this issue SDL_Rect rect = { x, y, width, height }; ^~~~~ static_cast( ) ../../src/flatzebra/GameEngine.h:412:36: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing] SDL_Rect rect = { x, y, width, height }; ^~~~~~ ../../src/flatzebra/GameEngine.h:412:36: note: insert an explicit cast to silence this issue SDL_Rect rect = { x, y, width, height }; ^~~~~~ static_cast( ) Reported by: pkg-fallout (blocks 3 ports) END