diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2019-04-29 08:03:46 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2019-04-29 08:03:46 +0000 |
commit | cddbd79271596d62365f573908a88e08483923dc (patch) | |
tree | 668411069399785f5dc2b8b833d7e1e5fd62012e /security/tinc-devel/files/patch-configure | |
parent | math/ipopt: Fix MASTER_SITES URL (diff) |
- fix __nonnull__ attribute
PR: 237602
Submitted by: pe82.de
Diffstat (limited to 'security/tinc-devel/files/patch-configure')
-rw-r--r-- | security/tinc-devel/files/patch-configure | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/security/tinc-devel/files/patch-configure b/security/tinc-devel/files/patch-configure new file mode 100644 index 000000000000..3f6fec783bf6 --- /dev/null +++ b/security/tinc-devel/files/patch-configure @@ -0,0 +1,35 @@ +--- configure.orig 2019-04-27 11:57:13 UTC ++++ configure +@@ -6192,8 +6192,8 @@ else + CFLAGS="$CFLAGS -Wall -Werror" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +-void *test(void) __attribute__ ((__malloc__)); +- void *test(void) { return (void *)0; } ++void *test(void *x) __attribute__ ((__malloc__)); ++ void *test(void *x) { return (void *)0; } + + _ACEOF + if ac_fn_c_try_compile "$LINENO"; then : +@@ -6226,8 +6226,8 @@ else + CFLAGS="$CFLAGS -Wall -Werror" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +-void *test(void) __attribute__ ((__nonnull__)); +- void *test(void) { return (void *)0; } ++void *test(void *x) __attribute__ ((__nonnull__)); ++ void *test(void *x) { return (void *)0; } + + _ACEOF + if ac_fn_c_try_compile "$LINENO"; then : +@@ -6260,8 +6260,8 @@ else + CFLAGS="$CFLAGS -Wall -Werror" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +-void *test(void) __attribute__ ((__warn_unused_result__)); +- void *test(void) { return (void *)0; } ++void *test(void *x) __attribute__ ((__warn_unused_result__)); ++ void *test(void *x) { return (void *)0; } + + _ACEOF + if ac_fn_c_try_compile "$LINENO"; then : |