From 6516c5a2d4a310014df3ccba04bcaa39b7b28b83 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Thu, 19 Jan 2023 17:57:32 -0500 Subject: [multiple] clang -Wstrict-prototypes for C2x adjustments to compile warnings-free with recent clang changes that warn about potential behavior change for non-prototypes, including generic function pointers e.g. int(*)() x-ref: https://discourse.llvm.org/t/rfc-enabling-wstrict-prototypes-by-default-in-c/60521 https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2432.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2841.htm --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7fcba4b3..8aa15dad 100644 --- a/configure.ac +++ b/configure.ac @@ -1525,7 +1525,7 @@ if test "$ac_cv_func_sendfile" = yes; then #include #include #include - int main() { + int main(void) { int o = 0; if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1; return 0; -- cgit v1.2.1