This is an automated email from the git hooks/post-receive script.
dgoulet pushed a change to branch main in repository tor.
from 97512f3f7b changelog: Add the missing latest stables new ee38514cc4 build: fix -Wstrict-prototypes (Clang 16) new fe045f02d0 Merge branch 'maint-0.4.5' into maint-0.4.7 new 1ff78f3751 Merge branch 'maint-0.4.7'
The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
Summary of changes: configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit ee38514cc4372bfb7d01ee96a1110d600a30e061 Author: Sam James sam@gentoo.org AuthorDate: Tue Nov 8 06:42:59 2022 +0000
build: fix -Wstrict-prototypes (Clang 16)
Clang 16 warns on -Wstrict-prototypes in preparation for C23 which can among other things, lead to some configure tests silently failing/returning the wrong result.
Fixes this error: ``` -ignoreme: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] +ignoreme: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] main () ```
For more information, see LWN.net [0] or LLVM's Discourse [1], gentoo-dev@ [2], or the (new) c-std-porting mailing list [3].
[0] https://lwn.net/Articles/913505/ [1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-i... [2] https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e... [3] hosted at lists.linux.dev.
Bug: https://bugs.gentoo.org/879747 Signed-off-by: Sam James sam@gentoo.org --- --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac index 517b1164c5..f26ed14229 100644 --- a/configure.ac +++ b/configure.ac @@ -1982,7 +1982,7 @@ AC_CACHE_CHECK([whether memset(0) sets pointers to NULL], tor_cv_null_is_zero, #ifdef HAVE_STDDEF_H #include <stddef.h> #endif -int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2)); +int main (void) { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2)); return memcmp(&p1,&p2,sizeof(char*))?1:0; }]])], [tor_cv_null_is_zero=yes], [tor_cv_null_is_zero=no], @@ -2006,7 +2006,7 @@ AC_CACHE_CHECK([whether memset(0) sets doubles to 0.0], tor_cv_dbl0_is_zero, #ifdef HAVE_STDDEF_H #include <stddef.h> #endif -int main () { double d1,d2; d1=0; memset(&d2,0,sizeof(d2)); +int main (void) { double d1,d2; d1=0; memset(&d2,0,sizeof(d2)); return memcmp(&d1,&d2,sizeof(d1))?1:0; }]])], [tor_cv_dbl0_is_zero=yes], [tor_cv_dbl0_is_zero=no], @@ -2031,7 +2031,7 @@ AC_CACHE_CHECK([whether we can malloc(0) safely.], tor_cv_malloc_zero_works, #ifdef HAVE_STDDEF_H #include <stddef.h> #endif -int main () { return malloc(0)?0:1; }]])], +int main (void) { return malloc(0)?0:1; }]])], [tor_cv_malloc_zero_works=yes], [tor_cv_malloc_zero_works=no], [tor_cv_malloc_zero_works=cross])]) @@ -2049,7 +2049,7 @@ fi # whether we seem to be in a 2s-complement world. AC_CACHE_CHECK([whether we are using 2s-complement arithmetic], tor_cv_twos_complement, [AC_RUN_IFELSE([AC_LANG_SOURCE( -[[int main () { int problem = ((-99) != (~99)+1); +[[int main (void) { int problem = ((-99) != (~99)+1); return problem ? 1 : 0; }]])], [tor_cv_twos_complement=yes], [tor_cv_twos_complement=no], @@ -2069,7 +2069,7 @@ fi # What does shifting a negative value do? AC_CACHE_CHECK([whether right-shift on negative values does sign-extension], tor_cv_sign_extend, [AC_RUN_IFELSE([AC_LANG_SOURCE( -[[int main () { int okay = (-60 >> 8) == -1; return okay ? 0 : 1; }]])], +[[int main (void) { int okay = (-60 >> 8) == -1; return okay ? 0 : 1; }]])], [tor_cv_sign_extend=yes], [tor_cv_sign_extend=no], [tor_cv_sign_extend=cross])])
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit fe045f02d0c591458e311da49bc7a2e4b8108279 Merge: 5b0103cfb4 ee38514cc4 Author: David Goulet dgoulet@torproject.org AuthorDate: Wed Nov 9 11:47:06 2022 -0500
Merge branch 'maint-0.4.5' into maint-0.4.7
configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 1ff78f3751a63b96c7257b33e9ada4d70174b166 Merge: 97512f3f7b fe045f02d0 Author: David Goulet dgoulet@torproject.org AuthorDate: Wed Nov 9 11:47:06 2022 -0500
Merge branch 'maint-0.4.7'
configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
tor-commits@lists.torproject.org