[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: commit: ldap/include lber_pvt.h
hyc@OpenLDAP.org writes:
> lber_pvt.h 1.39 -> 1.40
> Silence BER_BVC warning
>
> -#define BER_BVC(s) { STRLENOF(s), (s) }
> +#define BER_BVC(s) { STRLENOF(s), (char *)(s) }
Is this a "cast away const"? It also removes warnings about genuine
type errors.
If it's just for a few cases, how about adding a BER_BVCC macro which
takes a const char[] instead? Or if it's for C++, that can use
const_cast<char *>(s).
--
Hallvard