diff --git a/examples/android/app/build.gradle b/examples/android/app/build.gradle index b1fb031b5..935dce939 100644 --- a/examples/android/app/build.gradle +++ b/examples/android/app/build.gradle @@ -11,7 +11,7 @@ android { testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { ndkBuild { - // cppFlags "-std=c++14 -frtti -fexceptions" + cppFlags "-std=c++17" } } diff --git a/include/SFML/System/Clock.hpp b/include/SFML/System/Clock.hpp index 3ae671177..0ee4d9dc0 100644 --- a/include/SFML/System/Clock.hpp +++ b/include/SFML/System/Clock.hpp @@ -136,7 +136,7 @@ private: /// \return Time instance /// //////////////////////////////////////////////////////////// - static Time durationToTime(ClockImpl::duration duration); + [[nodiscard]] static Time durationToTime(ClockImpl::duration duration); //////////////////////////////////////////////////////////// // Member data