Bug#547223: libvorbis: ov_fopen should have const qualifier for char *path

Sebastian Dröge slomo at circular-chaos.org
Mon Mar 29 06:10:10 UTC 2010


Hi,
adding a const qualifier to a function parameter without changing the
handling of the parameter (e.g. copying or not copying it inside the
function) is no API breakage. Removing the const qualifier would
arguably be an API breakage though.

Compilers warn about implicitly removing a const qualifier (passing
const char * to a function taking char *) but not about implicitly
adding a const qualifier (passing char * to a function taking const char
*).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-xiph-maint/attachments/20100329/b2594fb2/attachment.pgp>


More information about the pkg-xiph-maint mailing list