The following commit has been merged in the master branch:
commit 09aba81c50cbda2c8af7f1fcc977b7b946c1908e
Author: Mark Vitale <[email protected]>
Date:   Fri Mar 17 15:14:19 2023 -0400

    Cast LWP event functions to void pointer
    
    When building with Solaris Studio, we receive warnings about the type of
    the event passed to the LWP functions.
    
      CC  /export/home/vagrant/openafs/src/vol/volume.o
      "volume.c", line 662: warning: argument #1 is incompatible with prototype:
         prototype: pointer to void : ".../include/lwp.h", line 273
         argument : pointer to function(enum  {volumeSalvager(7), ...)
                      returning int (E_ARG_INCOMPATIBLE_WITH_ARG_L)
    
    In particular, this happens in src/vol/volume.c because our "events" are
    function pointers and the LWP functions expect a pointer to a void.
    
    As needed, cast the event pointer to the expected (void *) to eliminate
    the warnings.
    
    [mmeffie: Rebase and update commit message.]
    
    Change-Id: I619a52326914aeff66263e62490de3b6d3b0c9ac
    Reviewed-on: https://gerrit.openafs.org/15356
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Michael Meffie <[email protected]>
    Tested-by: Michael Meffie <[email protected]>

 src/vol/volume.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to