From 96a4262fb9baf3bb3d6e4469e91b926b2136e0b3 Mon Sep 17 00:00:00 2001 From: Pawel Paruzel Date: Tue, 14 Dec 2021 16:29:47 +0100 Subject: [PATCH] Update Android example build to C++17 --- examples/android/app/build.gradle | 2 +- include/SFML/System/Clock.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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