The following commit has been merged in the master branch:
commit 97018ace991d300a6ff75a1dcd1a69b4044f2b89
Author: Cheyenne Wills <[email protected]>
Date:   Wed Nov 2 14:47:04 2022 -0600

    clang-16: Fix conditionally unused-but-set variables
    
    clang-16 is flagging unused-but-set variables which result in build
    errors when --enable-warning is turned on.
    
       remote.c:485:15: error: variable 'pass' set but not used
           [-Werror,-Wunused-but-set-variable]
         afs_int32 pass;
                  ^
    These variables are actually used in specific cases depending on
    build configuration (e.g. AFS_PTHREAD_ENV, etc.).
    
    Relocate these variables so they are fully defined or referenced within
    preprocessor '#if' blocks.
    
    Change-Id: I900a192ec781be4ab4453769e1d8f0cc48fe5757
    Reviewed-on: https://gerrit.openafs.org/15177
    Reviewed-by: Andrew Deason <[email protected]>
    Reviewed-by: Benjamin Kaduk <[email protected]>
    Tested-by: BuildBot <[email protected]>

 src/afs/afs_daemons.c  | 4 ++++
 src/kauth/kadatabase.c | 6 ++++--
 src/ubik/recovery.c    | 6 +++++-
 src/ubik/remote.c      | 8 ++++----
 src/vol/volume.c       | 4 +++-
 5 files changed, 20 insertions(+), 8 deletions(-)

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

Reply via email to