cURL / Mailing Lists / curl-library / Single Mail

curl-library

Const qualifier mis-match detected by DECC/VMS in curl_gssapi.c

From: John E. Malmberg <wb8tyw_at_qsl.net>
Date: Tue, 25 Nov 2014 11:55:10 -0600

In building the Nov 24 daily snapshot on VMS, I am getting the following
warnings because a const pointer is being assigned to a member of a
structure that is not const.

Generally with DECC, a cast of (char *) is needed here, I am assuming
that the current settings used for gcc are not that picky?

I will be submitting a patch that disables that check for VMS builds.

79919 static const char spnego_oid_bytes[] = "\x2b\x06\x01\x05\x05\x0
79920 gss_OID_desc Curl_spnego_mech_oid = { 6, &spnego_oid_bytes };
                 .........................................1
%CC-W-NOTCONSTQUAL, (1) In the initializer for
Curl_spnego_mech_oid.elements, the referenced type of the pointer value
"&spnego_oid_bytes" is const, but the referenced type of the target of
this assignment is not.

79921 static const char krb5_oid_bytes[] = "\x2a\x86\x48\x86\xf7\x12\♦
79922 gss_OID_desc Curl_krb5_mech_oid = { 9, &krb5_oid_bytes };
                 .......................................1
%CC-W-NOTCONSTQUAL, (1) In the initializer for
Curl_krb5_mech_oid.elements, the referenced type of the pointer value
"&krb5_oid_bytes" is const, but the referenced type of the target of
this assignment is not.

Regards,
-John
wb8tyw_at_qsl.network
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-11-25