Commit cbdb5ea63cb5348d9ead16dc46bedda77a4c3d7d

Bruno Haible 2022-02-10T02:44:14

string: Fix "mismatched allocation function" warnings regarding strndup. * lib/string.in.h (strndup): Mark with _GL_ATTRIBUTE_MALLOC and _GL_ATTRIBUTE_DEALLOC_FREE. For GCC >= 11: Declare also when the platform already declares the function or when the module 'strndup' is not in use.