[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #7260 [Tor]: MinGW64 & -Werror -Werror
#7260: MinGW64 & -Werror -Werror
--------------------+-------------------------------------------------------
Reporter: yayooo | Owner:
Type: defect | Status: needs_review
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor | Version: Tor: 0.2.3.24-rc
Keywords: | Parent:
Points: | Actualpoints:
--------------------+-------------------------------------------------------
Changes (by yayooo):
* status: needs_revision => needs_review
Comment:
I am a newbie, thank you for your advices, I did some updates followed
your advices , and tested on Linux_x86_64 MinGW64 OpenBSD_5.1_amd64 .
1. remove orconfig.h.in from changed list, so please autoheader before
configure .
2. updated src/win32/orconfig.h , but I got no MSVC installed, so should
somebody help me to test it on MSVC32 & MSVC64 ?
3. updated src/common/procmon.c in Werror.3.patch ,
4. rename INTPTR_T_to_INT to INTEGER_TYPE_AS_INTPTR_T
- char s1[20], s2[10], s3[10], ch;
+ char s1[1000000], s2[10], s3[10], ch;
is for the OpenBSD platform:
cc1: warnings being treated as errors
test_util.c: In function 'test_util_sscanf':
test_util.c:1488: warning: Array size (20) smaller than format string size
(1000000) (arg 3)
test_util.c:1593: warning: Array size (20) smaller than format string size
(1000) (arg 3)
Anyone have good suggestion to solve this ?
my goal is export CFLAGS='-Wextra -Werror' before configure , and
everything still goes well.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7260#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs