projects
/
hvgrip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c6d263
)
Fix compilation warning
author
Hugo Villeneuve
<hugo@hugovil.com>
Mon, 5 Sep 2011 21:15:21 +0000
(17:15 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Tue, 25 Mar 2014 03:27:04 +0000
(23:27 -0400)
Original warning message:
warning: passing argument 3 of ‘DiscDBConvertEncoding’ discards qualifiers
from pointer target type
src/discdb.c
patch
|
blob
|
history
diff --git
a/src/discdb.c
b/src/discdb.c
index
2be0d6f
..
74233c7
100644
(file)
--- a/
src/discdb.c
+++ b/
src/discdb.c
@@
-725,7
+725,7
@@
int DiscDBReadDiscData(DiscInfo *disc,DiscData *ddata, const char *encoding)
if(!DiscDBUTF8Validate(disc,ddata)) {
DiscDBConvertEncoding(disc,ddata,strcasecmp(encoding,"UTF-8")?
-
encoding:"ISO-8859-1","UTF-8");
+
(char *)
encoding:"ISO-8859-1","UTF-8");
}
fclose(discdb_data);