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; }