From 811860c3b41f5c24e388342fcb534a57c1645f80 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Aug 2021 21:54:06 +0200 Subject: [PATCH] android/Context: use [[gnu::pure]] --- src/android/Context.hxx | 4 ++-- src/android/Environment.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/android/Context.hxx b/src/android/Context.hxx index bdbdc641f..6be0735a2 100644 --- a/src/android/Context.hxx +++ b/src/android/Context.hxx @@ -30,10 +30,10 @@ public: Context(JNIEnv *env, jobject obj) noexcept :Java::GlobalObject(env, obj) {} - gcc_pure + [[gnu::pure]] AllocatedPath GetCacheDir(JNIEnv *env) const noexcept; - gcc_pure + [[gnu::pure]] AudioManager *GetAudioManager(JNIEnv *env) noexcept; }; diff --git a/src/android/Environment.hxx b/src/android/Environment.hxx index f8b964deb..15cc604cd 100644 --- a/src/android/Environment.hxx +++ b/src/android/Environment.hxx @@ -33,10 +33,10 @@ namespace Environment { /** * Determine the mount point of the external SD card. */ - gcc_pure + [[gnu::pure]] AllocatedPath getExternalStorageDirectory() noexcept; - gcc_pure + [[gnu::pure]] AllocatedPath getExternalStoragePublicDirectory(const char *type) noexcept; }