Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/libevent/dist/test tests/libevent: fix Clang build



details:   https://anonhg.NetBSD.org/src/rev/5105c7f41a9c
branches:  trunk
changeset: 954477:5105c7f41a9c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Apr 10 19:27:16 2021 +0000

description:
tests/libevent: fix Clang build

No idea why GCC did not complain about this as well.

diffstat:

 external/bsd/libevent/dist/test/regress_http.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 075ba214dca6 -r 5105c7f41a9c external/bsd/libevent/dist/test/regress_http.c
--- a/external/bsd/libevent/dist/test/regress_http.c    Sat Apr 10 19:18:45 2021 +0000
+++ b/external/bsd/libevent/dist/test/regress_http.c    Sat Apr 10 19:27:16 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: regress_http.c,v 1.9 2021/04/10 19:18:45 rillig Exp $  */
+/*     $NetBSD: regress_http.c,v 1.10 2021/04/10 19:27:16 rillig Exp $ */
 
 /*
  * Copyright (c) 2003-2007 Niels Provos <provos%citi.umich.edu@localhost>
@@ -36,7 +36,7 @@
 
 #include "event2/event-config.h"
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: regress_http.c,v 1.9 2021/04/10 19:18:45 rillig Exp $");
+__RCSID("$NetBSD: regress_http.c,v 1.10 2021/04/10 19:27:16 rillig Exp $");
 
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -4580,7 +4580,11 @@
        test_ok = 1;
 }
 
-static void http_run_bev_request(struct event_base *base, int port,
+static void
+#ifdef __GNUC__
+       __attribute__((format(printf, 3, 4)))
+#endif
+http_run_bev_request(struct event_base *base, int port,
        const char *fmt, ...)
 {
        struct bufferevent *bev = NULL;



Home | Main Index | Thread Index | Old Index