]> source.dussan.org Git - tigervnc.git/commit
rfb: Silence nonliteral format string warning in Logger
authorSteve Kondik <shade@chemlab.org>
Sat, 8 Jul 2017 09:06:16 +0000 (02:06 -0700)
committerSteve Kondik <shade@chemlab.org>
Mon, 10 Jul 2017 16:14:43 +0000 (09:14 -0700)
commit5ec2d09b84d8ea77c67ac0b9ea44c0590d252ad3
tree8b996b672ae85f489c062962590c279b37171ec6
parentff69074635de8690b17f9ed90b8a6188ebb6176f
rfb: Silence nonliteral format string warning in Logger

Clang complains loudly about this with Wformat=2, so add
a __printf_attr to help out.

Fixes:

/home/shade/dev/tigervnc/common/rfb/Logger.cxx:48:35: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
  vsnprintf(buf1, sizeof(buf1)-1, format, ap);
                                  ^~~~~~
1 error generated.
common/rfb/LogWriter.h
common/rfb/Logger.h