From 761523ddea70f0456b556c09868910686751fff5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 6 May 2018 17:00:56 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ lib/af_alg.h | 2 +- m4/af_alg.m4 | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) 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.], -- 2.39.5