Closed nkonin closed 6 years ago
Interesting. It didn't happen to me locally, and also compiles fine in Travis CI. Do you have any special compiler flags enabled by default like -Werror
?
The -Werror
flag is present in the Makefile, and for several years already.
https://github.com/FSX/momoko/blob/9d6476dee365e862d5a4d1e1c0f00b26391e2bae/tcproxy/src/Makefile#L5
I just ran make -C tcproxy
as written in the readme.
Can you post output of gcc -v
on your system please?
$ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.25.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Oh, it's Mac. I guess that's the difference. I wonder why the native gcc does not break on that. Anyways, I've forked tcpproxy from other project and the origin was not updated since then. It's used only for testing and tests pass after your patch. Though I don't understand the reason for failure fully, it does not seem to be of much importance here. Therefore I'm merging it.
Got error
Remove unsed variables from error message
And now it's ok