Fix "ndr_size_PAC_LOGON_INFO defined but not used" build warning
authorTim Prouty <tprouty@samba.org>
Thu, 23 Oct 2008 20:41:44 +0000 (13:41 -0700)
committerTim Prouty <tprouty@samba.org>
Thu, 23 Oct 2008 22:13:54 +0000 (15:13 -0700)
This patch removes the gensize option from krb5pac.idl because it
generates an unused function that has been causing warnings during the
s3 build.  I re-ran 'make samba3-idl' to update the generated files
for s3.  For s4 I ran a full build with no problems.

librpc/idl/krb5pac.idl
source3/librpc/gen_ndr/krb5pac.h
source3/librpc/gen_ndr/ndr_krb5pac.c

index a498b795f8e0ec384a69db2c8153b38936822ec6..24c55b8541a7a44ebce4775734cbfe953f6669ab 100644 (file)
@@ -25,7 +25,7 @@ interface krb5pac
                [flag(NDR_REMAINING)] DATA_BLOB signature;
        } PAC_SIGNATURE_DATA;
 
-       typedef [gensize] struct {
+       typedef struct {
                netr_SamInfo3 info3;
                dom_sid2 *res_group_dom_sid;
                samr_RidWithAttributeArray res_groups;
index 7ec3e95d70d386b8978b16dc5dbe0c7b777b114a..73bd0d95bb1fd97c1f62b6fd3853e4e5c210123e 100644 (file)
@@ -24,7 +24,7 @@ struct PAC_LOGON_INFO {
        struct netr_SamInfo3 info3;
        struct dom_sid2 *res_group_dom_sid;/* [unique] */
        struct samr_RidWithAttributeArray res_groups;
-}/* [gensize] */;
+};
 
 struct PAC_UNKNOWN_12 {
        uint16_t upn_size;/* [value(2*strlen_m(upn_name))] */
index f9e93e52102eae34b32c437929380ae9ebf7ed9f..125fb7eb77f67fab9834fb6d13a880f0ed1c8be0 100644 (file)
@@ -161,11 +161,6 @@ _PUBLIC_ void ndr_print_PAC_LOGON_INFO(struct ndr_print *ndr, const char *name,
        ndr->depth--;
 }
 
-static size_t ndr_size_PAC_LOGON_INFO(const struct PAC_LOGON_INFO *r, int flags)
-{
-       return ndr_size_struct(r, flags, (ndr_push_flags_fn_t)ndr_push_PAC_LOGON_INFO);
-}
-
 _PUBLIC_ enum ndr_err_code ndr_push_PAC_LOGON_INFO_CTR(struct ndr_push *ndr, int ndr_flags, const struct PAC_LOGON_INFO_CTR *r)
 {
        if (ndr_flags & NDR_SCALARS) {