DatabaseGlue: make GetDatabase() "gcc_const"

This variable is initialized once on startup.  It will never change.
This commit is contained in:
Max Kellermann 2013-11-24 22:04:41 +01:00
parent 529b4bd185
commit 6396e23a2a

View File

@ -44,7 +44,7 @@ DatabaseGlobalOpen(Error &error);
* Returns the global #Database instance. May return nullptr if this MPD
* configuration has no database (no music_directory was configured).
*/
gcc_pure
gcc_const
const Database *
GetDatabase();