]> Savannah Git Hosting - gnulib.git/commitdiff
af_alg: Avoid warnings.
authorBruno Haible <bruno@clisp.org>
Sun, 6 May 2018 15:00:56 +0000 (17:00 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 6 May 2018 15:00:56 +0000 (17:00 +0200)
* lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
* m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.

ChangeLog
lib/af_alg.h
m4/af_alg.m4

index 29390f4116da2cc3988c333f0d51be17c9a926bc..60f65f4c26ac7ecec26f1e216d97867233ff6b33 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index dfcc995964295b53efb5f9449baf3515b782ce64..45c2c125d3e58bb1a179cb2779b3961fcb4cbdd4 100644 (file)
@@ -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;
index f7176f37e56172d12945f024b405181bbde40b3f..db7150e08c56b01998cf7f94d035eba7fe76a579 100644 (file)
@@ -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.],