-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Bruno Haible wrote:
> Micah Cowan wrote:
>> How best do I determine in my code whether I'm using gnulib's
>> getopt_long, or the system library (potentially glibc)'s? That is, I
>> want to know whether I ought to be passing in a char ** or a
>> char*const*, whilst avoiding warnings and the like.
> 
> I would pass a 'char **': an implicit cast from 'char **' to 'char *const*'
> does not cause a warning.

Doh! Of course you're right. I was thinking of it like it was const
char**, which of course requires a diagnostic. I _knew_ I was missing
something!

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIhuI7M8hyUobTrERCIVNAJ0TmU9PEU2XVnXn6/JxNBcIGd5qfwCeOwil
OIBDG/yhzMtopxCrYfNP7b0=
=E6uZ
-----END PGP SIGNATURE-----


Reply via email to