Mercurial > gnulib
changeset 39341:70fea0441bbe
af_alg: Avoid warnings.
* lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
* m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 06 May 2018 17:00:56 +0200 |
parents | fab3f3257c56 |
children | b50fdee87a36 |
files | ChangeLog lib/af_alg.h m4/af_alg.m4 |
diffstat | 3 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun May 06 16:46:57 2018 +0200 +++ b/ChangeLog Sun May 06 17:00:56 2018 +0200 @@ -1,3 +1,9 @@ +2018-05-06 Bruno Haible <bruno@clisp.org> + + af_alg: Avoid warnings. + * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline. + * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE. + 2018-05-06 Bruno Haible <bruno@clisp.org> crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
--- a/lib/af_alg.h Sun May 06 16:46:57 2018 +0200 +++ b/lib/af_alg.h Sun May 06 17:00:56 2018 +0200 @@ -64,7 +64,7 @@ # else -static int +static inline int afalg_stream (FILE *stream, const char *alg, void *resblock, ssize_t hashlen) { return -EAFNOSUPPORT;
--- a/m4/af_alg.m4 Sun May 06 16:46:57 2018 +0200 +++ b/m4/af_alg.m4 Sun May 06 17:00:56 2018 +0200 @@ -1,4 +1,4 @@ -# af_alg.m4 serial 2 +# af_alg.m4 serial 3 dnl Copyright 2018 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,7 @@ AC_DEFUN_ONCE([gl_AF_ALG], [ AC_REQUIRE([gl_HEADER_SYS_SOCKET]) + AC_REQUIRE([AC_C_INLINE]) dnl Check whether linux/if_alg.h has needed features. AC_CACHE_CHECK([whether linux/if_alg.h has struct sockaddr_alg.],