Commit 811860c3 authored by Max Kellermann's avatar Max Kellermann

android/Context: use [[gnu::pure]]

...@@ -30,10 +30,10 @@ public: ...@@ -30,10 +30,10 @@ public:
Context(JNIEnv *env, jobject obj) noexcept Context(JNIEnv *env, jobject obj) noexcept
:Java::GlobalObject(env, obj) {} :Java::GlobalObject(env, obj) {}
gcc_pure [[gnu::pure]]
AllocatedPath GetCacheDir(JNIEnv *env) const noexcept; AllocatedPath GetCacheDir(JNIEnv *env) const noexcept;
gcc_pure [[gnu::pure]]
AudioManager *GetAudioManager(JNIEnv *env) noexcept; AudioManager *GetAudioManager(JNIEnv *env) noexcept;
}; };
......
...@@ -33,10 +33,10 @@ namespace Environment { ...@@ -33,10 +33,10 @@ namespace Environment {
/** /**
* Determine the mount point of the external SD card. * Determine the mount point of the external SD card.
*/ */
gcc_pure [[gnu::pure]]
AllocatedPath getExternalStorageDirectory() noexcept; AllocatedPath getExternalStorageDirectory() noexcept;
gcc_pure [[gnu::pure]]
AllocatedPath getExternalStoragePublicDirectory(const char *type) noexcept; AllocatedPath getExternalStoragePublicDirectory(const char *type) noexcept;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment