Skip to content
Snippets Groups Projects
Forked from The Tor Project / Core / Tor
26021 commits behind the upstream repository.
Nick Mathewson's avatar
Nick Mathewson authored
It turns out that if you set the third argument of
__attribute__(format) to 0, GCC and Clang will check the format
argument without expecting to find variadic arguments.  This is the
correct behavior for vsnprintf, vasprintf, and vscanf.

I'm hoping this will fix bug 5969 (a clang warning) by telling clang that
the format argument to tor_vasprintf is indeed a format string.
e2848946
History
Name Last commit Last update
..
common
config
or
test
tools
win32
Makefile.am