diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-13 00:07:26 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-13 00:07:26 -0700 |
commit | 38772ec3b5a7216a88676f95b5edc764dd0a23d6 (patch) | |
tree | 4e99597fa0e81489c9bd554b3a15fece11161279 | |
parent | f53d8511d26a26e9bd6b1bc665f6283f1efd98d9 (diff) |
Declare capability_name() as returning const char *
Only used as an argument to printf. Clears gcc warnings:
xrandr.c: In function ‘capability_name’:
xrandr.c:237:2: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
xrandr.c:239:2: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
xrandr.c:241:2: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
xrandr.c:243:2: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
xrandr.c:245:5: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xrandr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -229,7 +229,7 @@ reflection_name (Rotation rotation) return "invalid reflection"; } -static char * +static const char * capability_name (int cap_bit) { switch (cap_bit) { |