LaurentGomila/SFML — pull request #685 by Ang3lus (2014-08-19 18:05:49+00:00)
Title: C++11/14 compatibility

cmake ../SFML_c11 -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_C_COMPILER="/usr/bin/clang" -DCMAKE_CXX_COMPILER="/usr/bin/clang++" -DCMAKE_CXX_FLAGS="-std=c++1y -stdlib=libc++"

Small errors when using C++11/14 and clang:
src/SFML/Window/Unix/GlxContext.cpp:237:33: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
GLX_DEPTH_SIZE, settings.depthBits,
^~~~~~~~~~~~~~~~~~
src/SFML/Window/Unix/GlxContext.cpp:237:33: note: override this message by inserting an explicit cast
GLX_DEPTH_SIZE, settings.depthBits,
^~~~~~~~~~~~~~~~~~
static_cast( )
src/SFML/Window/Unix/GlxContext.cpp:238:35: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
GLX_STENCIL_SIZE, settings.stencilBits,
^~~~~~~~~~~~~~~~~~~~
src/SFML/Window/Unix/GlxContext.cpp:238:35: note: override this message by inserting an explicit cast
GLX_STENCIL_SIZE, settings.stencilBits,
^~~~~~~~~~~~~~~~~~~~
static_cast( )
src/SFML/Window/Unix/GlxContext.cpp:240:30: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
GLX_SAMPLES, settings.antialiasingLevel,
^~~~~~~~~~~~~~~~~~~~~~~~~~
src/SFML/Window/Unix/GlxContext.cpp:240:30: note: override this message by inserting an explicit cast
GLX_SAMPLES, settings.antialiasingLevel,
^~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast( )