[19480] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Making discarded-qualifiers a gcc error instead of warning?

daemon@ATHENA.MIT.EDU (Tom Yu)
Fri Sep 2 16:03:53 2016

From: Tom Yu <tlyu@mit.edu>
To: MIT Kerberos Dev List <krbdev@mit.edu>
Date: Fri, 02 Sep 2016 16:03:46 -0400
In-Reply-To: <20160901225615.GA14221@oracle.com> (Will Fiveash's message of
	"Thu, 1 Sep 2016 17:56:15 -0500")
Message-ID: <ldvk2euoyql.fsf@sarnath.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

Will Fiveash <will.fiveash@oracle.com> writes:

> ../../../../krb5-1.14.3/src/lib/krb5/krb/chpw.c: In function 'krb5int_mk_chpw_req':
> ../../../../krb5-1.14.3/src/lib/krb5/krb/chpw.c:32:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>      clearpw.data = passwd;
>                   ^
> ../../../../krb5-1.14.3/src/lib/krb5/krb/chpw.c: In function 'krb5int_mk_setpw_req':
> ../../../../krb5-1.14.3/src/lib/krb5/krb/chpw.c:305:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>      req.password.data = passwd;
>                        ^
> ../../../../../krb5-1.14.3/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c: In function 'has_rootdse_ava':
> ../../../../../krb5-1.14.3/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c:135:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>      attrs[0] = attribute;
>               ^

I think e534f688db29945e4efde425f62ce7dae4608f6f (on master) already
fixed the chpw.c cases, and 66acc3b529f997f902bf11d3004ddc065d5bea9f
(also on master) fixed the kdb_ldap.c case.  They're not currently
marked for pullup to release branches, but I'm willing to consider doing
so if they're not too difficult to back port.

-Tom
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post