]> granicus.if.org Git - gc/commit
test_cpp: Suppress GCC warnings in WinMain
authorIvan Maidanski <ivmai@mail.ru>
Fri, 15 Jun 2012 14:24:18 +0000 (18:24 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 15 Jun 2012 14:24:18 +0000 (18:24 +0400)
commite870802a19c103302aaac993c40419ba34d3ff3d
tree61b423ea900d9e51c22dfd5f11fa31b24309bbb1
parentd5a5bbf9e41d22d88f3ac1b2734bc182e1b1974f
test_cpp: Suppress GCC warnings in WinMain

* tests/test_cpp.cc (ATTR_UNUSED): New macro.
* tests/test_cpp.cc (WinMain): Tag "instance", "prev" and "cmdShow"
arguments with ATTR_UNUSED.
* tests/test_cpp.cc (WinMain): Explicitly cast "xio", "f", "d", "a"
local variables to void (to suppress "variable set but not used"
compiler warning).
tests/test_cpp.cc