aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-09 21:01:10 +0200
committerMax Kellermann <max@duempel.org>2011-09-09 21:01:19 +0200
commite7651d0d0f989298308cfd579ca76e294ede722e (patch)
treeee89c203c3bc336ee039078b8ccbf15d18cd259a /src/conf.h
parent6a6f28668f3c0e7a3a5dcc01def62f311b06f210 (diff)
downloadmpd-e7651d0d0f989298308cfd579ca76e294ede722e.tar.gz
mpd-e7651d0d0f989298308cfd579ca76e294ede722e.tar.xz
mpd-e7651d0d0f989298308cfd579ca76e294ede722e.zip
conf: add gcc optimization attributes
Diffstat (limited to 'src/conf.h')
-rw-r--r--src/conf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf.h b/src/conf.h
index c26ff6958..d460fb8dd 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -111,6 +111,7 @@ struct config_param {
* A GQuark for GError instances, resulting from malformed
* configuration.
*/
+G_GNUC_CONST
static inline GQuark
config_quark(void)
{
@@ -187,6 +188,7 @@ const char *
config_get_block_string(const struct config_param *param, const char *name,
const char *default_value);
+G_GNUC_MALLOC
static inline char *
config_dup_block_string(const struct config_param *param, const char *name,
const char *default_value)
@@ -204,6 +206,7 @@ bool
config_get_block_bool(const struct config_param *param, const char *name,
bool default_value);
+G_GNUC_MALLOC
struct config_param *
config_new_param(const char *value, int line);