]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix build without i18n
authorEric Blake <eblake@redhat.com>
Thu, 7 Jun 2012 03:13:57 +0000 (21:13 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 7 Jun 2012 03:32:37 +0000 (21:32 -0600)
commitb2ecfe9795526bbde6d302916e39a13b5e1283a0
treeaeb508d6eadc3362f2a734e40e7e5eac1921a8d9
parentdd7bc51bc45051b708c1b47b80d1e8402fcbcc5a
build: fix build without i18n

If you compile without NLS support, where _() is a no-op macro,
then we end up passing a string literal to a char*, provoking:

In file included from virsh.c:3639:0:
virsh-edit.c: In function ‘cmdSaveImageEdit’:
virsh-edit.c:97:13: error: assignment discards ‘const’ qualifier from pointer target type [-Werror]
virsh-edit.c:106:13: error: assignment discards ‘const’ qualifier from pointer target type [-Werror]

* tools/virsh-edit.c: Be const-safe.
tools/virsh-edit.c