|
From: | Brandon J. Van Every |
Subject: | Re: [Chicken-users] The bazillion unreferenced local variables |
Date: | Mon, 06 Feb 2006 18:08:19 -0800 |
User-agent: | Thunderbird 1.5 (Windows/20051201) |
felix winkelmann wrote:
I'm sure there is some #pragma for switching off particular warnings (we pass "-fno-undefined" to gcc already) for vc++. If you could find out what pragma we need, I'll add it to chicken.h
Going by this documentation http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_predir_warning.asp the following should work: #pragma warning( push ) // Tell us about unreferenced local variables only once. #pragma warning( once : 4101) // Surrounded code goes here #pragma warning( pop ) Cheers, Brandon Van Every
[Prev in Thread] | Current Thread | [Next in Thread] |