Author: ericwf Date: Mon Jun 13 21:46:39 2016 New Revision: 272617 URL: http://llvm.org/viewvc/llvm-project?rev=272617&view=rev Log: Silence more unused variable warnings. Patch from s...@microsoft.com
Modified: libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp Modified: libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp?rev=272617&r1=272616&r2=272617&view=diff ============================================================================== --- libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp (original) +++ libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp Mon Jun 13 21:46:39 2016 @@ -43,6 +43,14 @@ int main() ::va_list va; char* ns = 0; wchar_t* ws = 0; + ((void)mb); // Prevent unused warning + ((void)s); // Prevent unused warning + ((void)tm); // Prevent unused warning + ((void)w); // Prevent unused warning + ((void)fp); // Prevent unused warning + ((void)va); // Prevent unused warning + ((void)ns); // Prevent unused warning + ((void)ws); // Prevent unused warning static_assert((std::is_same<decltype(fwprintf(fp, L"")), int>::value), ""); static_assert((std::is_same<decltype(fwscanf(fp, L"")), int>::value), ""); static_assert((std::is_same<decltype(swprintf(ws, s, L"")), int>::value), ""); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits