open-tests: fix build failure with -Werror=old-style-declaration
authorPádraig Brady <P@draigBrady.com>
Mon, 9 Dec 2013 14:23:07 +0000 (14:23 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 9 Dec 2013 14:25:16 +0000 (14:25 +0000)
* tests/test-open.h: Reorder the inline to avoid the issue.

ChangeLog
tests/test-open.h

index 563e867..82a632a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-12-07  Pádraig Brady <P@draigBrady.com>
 
+       open-tests: fix build failure with -Werror=old-style-declaration
+       * tests/test-open.h: Reorder the inline to avoid the issue.
+
+2013-12-07  Pádraig Brady <P@draigBrady.com>
+
        md5, sha1, sha256, sha512: fix link error with partial libcrypto
        * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
        init time, so that if early checks find crypto routines,
index ff44b3e..2e634de 100644 (file)
@@ -31,7 +31,7 @@
    appropriate headers are already included.  If PRINT, warn before
    skipping symlink tests with status 77.  */
 
-static int __always_inline
+static __always_inline int
 test_open (int (*func) (char const *, int, ...), bool print)
 {
   int fd;