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 */
}
gvg@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