Fix compilation warning
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 5 Sep 2011 21:15:21 +0000 (17:15 -0400)
committerHugo 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

index 2be0d6f..74233c7 100644 (file)
@@ -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);