diff options
author | tb <> | 2025-05-31 08:25:04 +0000 |
---|---|---|
committer | tb <> | 2025-05-31 08:25:04 +0000 |
commit | 2aec1615f30ba76e1ce8dd1811d9a677df28675c (patch) | |
tree | 2de0245b29bebe62c8f92188bbc688b4fe3e4382 | |
parent | c7aacb489daeb3adc420b15aa8be9c46f7af61d7 (diff) | |
download | openbsd-2aec1615f30ba76e1ce8dd1811d9a677df28675c.tar.gz openbsd-2aec1615f30ba76e1ce8dd1811d9a677df28675c.tar.bz2 openbsd-2aec1615f30ba76e1ce8dd1811d9a677df28675c.zip |
Fix attributes in test.h
The __attribute__ is part of the function declaration, hence drop the
incorrect early semicolons. Fixes the build of the md test on sparc64.
In file included from /usr/src/regress/lib/libcrypto/md/md_test.c:25:
/usr/src/regress/lib/libcrypto/md/../test/test.h:61: warning: empty declaration
/usr/src/regress/lib/libcrypto/md/../test/test.h:77: warning: empty declaration
/usr/src/regress/lib/libcrypto/md/../test/test.h:114: warning: empty declaration
-rw-r--r-- | src/regress/lib/libcrypto/test/test.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/test/test.h b/src/regress/lib/libcrypto/test/test.h index 051871dd35..60e141d506 100644 --- a/src/regress/lib/libcrypto/test/test.h +++ b/src/regress/lib/libcrypto/test/test.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: test.h,v 1.2 2025/05/22 02:23:41 joshua Exp $ */ | 1 | /* $OpenBSD: test.h,v 1.3 2025/05/31 08:25:04 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2025 Joshua Sing <joshua@joshuasing.dev> | 3 | * Copyright (c) 2025 Joshua Sing <joshua@joshuasing.dev> |
4 | * | 4 | * |
@@ -56,7 +56,7 @@ void test_fail(struct test *_t); | |||
56 | * | 56 | * |
57 | * This printf will write directly, without any additional formatting. | 57 | * This printf will write directly, without any additional formatting. |
58 | */ | 58 | */ |
59 | void test_printf(struct test *_t, const char *_fmt, ...); | 59 | void test_printf(struct test *_t, const char *_fmt, ...) |
60 | __attribute__((__format__ (printf, 2, 3))) | 60 | __attribute__((__format__ (printf, 2, 3))) |
61 | __attribute__((__nonnull__ (2))); | 61 | __attribute__((__nonnull__ (2))); |
62 | 62 | ||
@@ -72,7 +72,7 @@ void test_printf(struct test *_t, const char *_fmt, ...); | |||
72 | * This function should never be called directly. | 72 | * This function should never be called directly. |
73 | */ | 73 | */ |
74 | void test_logf_internal(struct test *_t, const char *_label, const char *_func, | 74 | void test_logf_internal(struct test *_t, const char *_label, const char *_func, |
75 | const char *_file, int _line, const char *_fmt, ...); | 75 | const char *_file, int _line, const char *_fmt, ...) |
76 | __attribute__((__format__ (printf, 6, 7))) | 76 | __attribute__((__format__ (printf, 6, 7))) |
77 | __attribute__((__nonnull__ (6))); | 77 | __attribute__((__nonnull__ (6))); |
78 | 78 | ||
@@ -109,7 +109,7 @@ void test_skip(struct test *_t, const char *_reason); | |||
109 | * test_skipf marks the test as skipped with a formatted reason. Once called, | 109 | * test_skipf marks the test as skipped with a formatted reason. Once called, |
110 | * the test should return. | 110 | * the test should return. |
111 | */ | 111 | */ |
112 | void test_skipf(struct test *_t, const char *_fmt, ...); | 112 | void test_skipf(struct test *_t, const char *_fmt, ...) |
113 | __attribute__((__format__ (printf, 2, 3))) | 113 | __attribute__((__format__ (printf, 2, 3))) |
114 | __attribute__((__nonnull__ (2))); | 114 | __attribute__((__nonnull__ (2))); |
115 | 115 | ||