[ros-diffs] [gvg] 12866: Protect against unused variable warning

Alex Ionescu ionucu at videotron.ca
Fri Jan 7 16:24:57 CET 2005


gvg at svn.reactos.com wrote:

>Protect against unused variable warning
>
>Modified: trunk/reactos/drivers/video/videoprt/videoprt.c
>  
>
> ------------------------------------------------------------------------
> *Modified: trunk/reactos/drivers/video/videoprt/videoprt.c*
>
>--- trunk/reactos/drivers/video/videoprt/videoprt.c	2005-01-07 13:04:36 UTC (rev 12865)
>+++ trunk/reactos/drivers/video/videoprt/videoprt.c	2005-01-07 13:06:11 UTC (rev 12866)
>@@ -1019,6 +1019,7 @@
>
>          break;
>       }
> 
>  
>
>+#ifndef NDEBUG
>  
>
>       if (ChildType == Monitor)
>       {
>          INT j;
>@@ -1039,6 +1040,7 @@
>  
>
>       {
>          DPRINT("HwGetVideoChildDescriptor returned unsupported type: %d\n", ChildType);
>       }
>  
>
>+#endif /* NDEBUG */
>  
>
> 
>    }
> 
>  
>
Doesn't MS have a macro for this? UNREFERENCED_PARAMETER(p) I think.

Best regards,
Alex Ionescu



More information about the Ros-diffs mailing list