[Bug 281633] devel/readline: Fix API when used with -Wstrict-prototypes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 21 Sep 2024 17:18:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281633 Bug ID: 281633 Summary: devel/readline: Fix API when used with -Wstrict-prototypes Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: arrowd@FreeBSD.org Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) When building multimedia/pipewire with newest Clang and without this patch I get /usr/local/include/readline/rltypedefs.h:35:22: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] 35 | typedef int Function () __attribute__((deprecated)); | ^ | void /usr/local/include/readline/rltypedefs.h:36:24: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] 36 | typedef void VFunction () __attribute__((deprecated)); | ^ | void /usr/local/include/readline/rltypedefs.h:37:26: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] 37 | typedef char *CPFunction () __attribute__((deprecated)); | ^ | void /usr/local/include/readline/rltypedefs.h:38:28: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] 38 | typedef char **CPPFunction () __attribute__((deprecated)); | ^ | void In file included from ../src/tools/pw-cli.c:19: /usr/local/include/readline/readline.h:410:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] 410 | extern int rl_message (); | ^ | void -- You are receiving this mail because: You are the assignee for the bug.