The following commit has been merged in the master branch:
commit fd5aa52ef8ce719502f970ab93ffde07d7ed4780
Author: Cheyenne Wills <[email protected]>
Date:   Fri Jun 4 10:18:39 2021 -0600

    cf: Resolve implicit function definition for memset
    
    The autoconf function OPENAFS_HAVE_STRUCT_FIELD can produce a compiler
    warning for an implicit function definition for memset, however with
    macOS 11 (Big Sur) the default compiler flags have been changed
    (-Werror=implicit-function-declaration) so that this is now flagged as an
    error. As an error this can lead to an incorrect result returned by
    OPENAFS_HAVE_STRUCT_FIELD.
    
    Add an include for <string.h> to provide the necessary definition for
    memset.
    
    Note, both gcc and clang can produce the implicit function definition
    warning.
    
    Change-Id: I05ea43e1712c0450b7d1a78d4e953bfad9be28b9
    Reviewed-on: https://gerrit.openafs.org/14631
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Andrew Deason <[email protected]>
    Reviewed-by: Michael Meffie <[email protected]>
    Reviewed-by: Benjamin Kaduk <[email protected]>

 src/cf/have-struct-field.m4 |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

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

Reply via email to