changeset 17578:e98f72a517c4

open-tests: fix build failure with -Werror=old-style-declaration * tests/test-open.h: Reorder the inline to avoid the issue.
author Pádraig Brady <P@draigBrady.com>
date Mon, 09 Dec 2013 14:23:07 +0000
parents 5309e7f8551d
children 2f05c67c13f6
files ChangeLog tests/test-open.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
--- a/tests/test-open.h
+++ b/tests/test-open.h
@@ -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;