mirror of https://gitee.com/openkylin/libvirt.git
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.
This commit is contained in:
parent
dd7bc51bc4
commit
b2ecfe9795
|
@ -55,7 +55,7 @@ do {
|
|||
char *doc = NULL;
|
||||
char *doc_edited = NULL;
|
||||
char *doc_reread = NULL;
|
||||
char *msg = NULL;
|
||||
const char *msg = NULL;
|
||||
|
||||
/* Get the XML configuration of the object. */
|
||||
doc = (EDIT_GET_XML);
|
||||
|
|
Loading…
Reference in New Issue