From: Bruno Haible Date: Sun, 6 May 2018 15:00:56 +0000 (+0200) Subject: af_alg: Avoid warnings. X-Git-Tag: v1.0~5639 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=761523ddea70f0456b556c09868910686751fff5;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 29390f4116..60f65f4c26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-05-06 Bruno Haible + + 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 crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks. diff --git a/lib/af_alg.h b/lib/af_alg.h index dfcc995964..45c2c125d3 100644 --- a/lib/af_alg.h +++ b/lib/af_alg.h @@ -64,7 +64,7 @@ afalg_stream (FILE *stream, const char *alg, void *resblock, ssize_t hashlen); # else -static int +static inline int afalg_stream (FILE *stream, const char *alg, void *resblock, ssize_t hashlen) { return -EAFNOSUPPORT; diff --git a/m4/af_alg.m4 b/m4/af_alg.m4 index f7176f37e5..db7150e08c 100644 --- a/m4/af_alg.m4 +++ b/m4/af_alg.m4 @@ -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 @@ dnl From Matteo Croce. 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.],