diff options
author | Allan McRae <allan@archlinux.org> | 2013-12-21 09:04:41 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-01-06 05:38:49 +0100 |
commit | 452ee39de180c5c77f2f264d38a7c4d5925c1099 (patch) | |
tree | cff040482fa31d10f2c3237eb7307121a3d0aa08 /lib | |
parent | f7f8964c2315c81939798e870f96083146bbb27c (diff) | |
download | pacman-452ee39de180c5c77f2f264d38a7c4d5925c1099.tar.gz pacman-452ee39de180c5c77f2f264d38a7c4d5925c1099.tar.xz |
Fix build warnings with --disable-nls
The gettext functions return a "char *", so do the same for the defines
in the case where gettext is unavailable. This prevents a number of
warnings about const being dropped.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index c12b39b7..2142171c 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -47,7 +47,7 @@ /* define _() as shortcut for gettext() */ #define _(str) dgettext ("libalpm", str) #else -#define _(s) s +#define _(s) (char *)s #endif void _alpm_alloc_fail(size_t size); |