OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_65-76-g508bcd6

Gerrit Code Review gerrit@openafs.org
Fri, 16 Oct 2009 13:11:24 -0700 (PDT)


The following commit has been merged in the master branch:
commit 508bcd69b5ad55bcadf26d9b748f175c7a33ce77
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Thu Oct 15 13:48:08 2009 -0400

    Fix rxgen-generated warnings
    
    Prevent rxgen from generating code that produces warnings at compile
    time.
    
     * Add print_ifarg_with_cast().  Used within print_ifstat() to generate
       a member in an argument list complete with a type cast.  The type
       cast may be a pointer to the type or the type depending on the value
       of the 'ptr_to' parameter.
    
     * When print_ifstat() generates the output for an opaque vector, cast
       the object to 'caddr_t' as xdr_opaque() accepts an argument of type
       'caddr_t'.
    
     * When print_ifstat() generates the output for an opaque array, cast
       the object to 'char **' because xdr_bytes() accepts an argument of
       type 'char **'.
    
     * When print_ifstat() generates the output for any array that is not
       opaque or string, cast the object to 'caddr_t' because all of the
       xdr_XXX() functions other than xdr_opaque and xdr_bytes accept an
       argument of type 'caddr_t'.
    
     * When print_ifstat() generates the output for an alias, cast the
       output to a pointer to the specified type because xdr_<type> accepts
       an argument of type '<type> *'.
    
    This addresses warnings generated when compiling fsint/Kvice.xdr.c and
    fsint/afsint.xdr.c.
    
    Reviewed-on: http://gerrit.openafs.org/664
    Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
    Tested-by: Jeffrey Altman <jaltman@openafs.org>

 README.WARNINGS       |    1 -
 src/fsint/Makefile.in |    5 -----
 src/rxgen/rpc_cout.c  |   26 +++++++++++++++++++-------
 3 files changed, 19 insertions(+), 13 deletions(-)

-- 
OpenAFS Master Repository