clang on native Windows gives me this warning: gllib\bcopy.c(27,1): warning: no previous prototype for function 'bcopy' [-Wmissing-prototypes]
The normal way to fix this would be to add a '#include <strings.h>' in lib/bcopy.c. But our <strings.h> does not even provide a declaration of this function! It relies on AC_REPLACE_FUNCS and a K&R C compiler. Instead of putting effort into this outdated module, it is better to just mark it as deprecated. 2024-08-27 Bruno Haible <br...@clisp.org> bcopy: Deprecate module. * modules/bcopy (Status, Notice): Mark as deprecated. * doc/pastposix-functions/bcopy.texi: Mention that this module does not declare bcopy(). diff --git a/doc/pastposix-functions/bcopy.texi b/doc/pastposix-functions/bcopy.texi index 73ab4ea24f..c4676d9013 100644 --- a/doc/pastposix-functions/bcopy.texi +++ b/doc/pastposix-functions/bcopy.texi @@ -19,4 +19,6 @@ @item This function is removed in POSIX.1-2008. Better use @code{memcpy} or @code{memmove} instead. +@item +This module does not arrange to declare this function. @end itemize diff --git a/modules/bcopy b/modules/bcopy index d4a2bb93b7..146fb90c6a 100644 --- a/modules/bcopy +++ b/modules/bcopy @@ -1,6 +1,12 @@ Description: Old BSD bcopy() function: copy memory area. +Status: +deprecated + +Notice: +This module is deprecated because the standard way to copy memory is memcpy(). + Files: lib/bcopy.c