The One Rule of VLC development:<br>
If your code generates a warning, fix it.<br><br>I agree with you, don't worry :)<br><br>I would guess:<br>
<br>
const audioscrobbler_param_t *const *p1 = elt1;<br>
const audioscrobbler_param_t *const *p2 = elt2;<br><br>Thanks, it works fine.<br><div class="gmail_quote">On Fri, Mar 9, 2012 at 6:41 PM, Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net">remi@remlab.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">        Hello<br>
<br>
Le vendredi 9 mars 2012 19:31:43 Samuel Pitoiset, vous avez écrit :<br>
<div class="im">> I'm sorry but I got a warning with that.<br>
<br>
</div>The One Rule of VLC development:<br>
If your code generates a warning, fix it.<br>
<div class="im"><br>
> audioscrobbler.c: In function 'Sort':<br>
> audioscrobbler.c:514:35: warning: initialization discards 'const' qualifier<br>
> from pointer target type [enabled by default]<br>
> audioscrobbler.c:514:48: warning: initialization discards 'const' qualifier<br>
> from pointer target type [enabled by default]<br>
<br>
</div>I would guess:<br>
<br>
const audioscrobbler_param_t *const *p1 = elt1;<br>
const audioscrobbler_param_t *const *p2 = elt2;<br>
<div class="im"><br>
return strcmp((*p1)->key, (*p2)->key) ?<br>
<br>
</div><div class="im">> I think, the cast in sort() is a little weird but it works fine and I get<br>
> no warnings with the existing code.<br>
<br>
</div>I would say ugly and error-prone (if someone changes the code) more so than<br>
weird.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Rémi Denis-Courmont<br>
<a href="http://www.remlab.net/" target="_blank">http://www.remlab.net/</a><br>
<a href="http://fi.linkedin.com/in/remidenis" target="_blank">http://fi.linkedin.com/in/remidenis</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div>Best regards,</div>Samuel Pitoiset.<br><br>