[tor-dev] [PATCH] Fix some compiler warnings (torsocks)

Tim Ruehsen tim.ruehsen at gmx.de
Fri Jan 23 09:57:12 UTC 2015


I fixed some compiler warnings that came up with my standard gcc flags, 
nothing serious.

BTW, the code uses some gcc extensions which are not compatible through 
compilers and/or systems:
- pointer arithmetic with void *
- function pointer and void * assignments
- gcc variadic macro extensions

FYI, my gcc flags are
-std=gnu99 -pedantic -O2 -g -Wall -Wextra -Wstrict-prototypes -Wold-style-
definition -Wwrite-strings -Wshadow -Wformat -Wformat-security -Wunreachable-
code -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -
Wlogical-op -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -
D_FORTIFY_SOURCE=2

Regards, Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-some-compiler-warnings.patch
Type: text/x-patch
Size: 6309 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20150123/6b1bfd1a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20150123/6b1bfd1a/attachment-0001.sig>


More information about the tor-dev mailing list