From 2aec1615f30ba76e1ce8dd1811d9a677df28675c Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 31 May 2025 08:25:04 +0000 Subject: 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 --- src/regress/lib/libcrypto/test/test.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/regress/lib/libcrypto/test/test.h') 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 @@ -/* $OpenBSD: test.h,v 1.2 2025/05/22 02:23:41 joshua Exp $ */ +/* $OpenBSD: test.h,v 1.3 2025/05/31 08:25:04 tb Exp $ */ /* * Copyright (c) 2025 Joshua Sing * @@ -56,7 +56,7 @@ void test_fail(struct test *_t); * * This printf will write directly, without any additional formatting. */ -void test_printf(struct test *_t, const char *_fmt, ...); +void test_printf(struct test *_t, const char *_fmt, ...) __attribute__((__format__ (printf, 2, 3))) __attribute__((__nonnull__ (2))); @@ -72,7 +72,7 @@ void test_printf(struct test *_t, const char *_fmt, ...); * This function should never be called directly. */ void test_logf_internal(struct test *_t, const char *_label, const char *_func, - const char *_file, int _line, const char *_fmt, ...); + const char *_file, int _line, const char *_fmt, ...) __attribute__((__format__ (printf, 6, 7))) __attribute__((__nonnull__ (6))); @@ -109,7 +109,7 @@ void test_skip(struct test *_t, const char *_reason); * test_skipf marks the test as skipped with a formatted reason. Once called, * the test should return. */ -void test_skipf(struct test *_t, const char *_fmt, ...); +void test_skipf(struct test *_t, const char *_fmt, ...) __attribute__((__format__ (printf, 2, 3))) __attribute__((__nonnull__ (2))); -- cgit v1.2.3-55-g6feb