[vtk-developers] Unused arguments warnings

David Doria daviddoria+vtk at gmail.com
Thu Sep 2 15:01:33 EDT 2010


I've seen a handful of unused args warnings when compiling lately (argc and
argv in some tests).

Should I change them to

int TestName(int, char*[])

or

int TestName(int vtkNotUsed(argc), char*vtkNotUsed(argv)[])

?

Is the idea of the vtkNotUsed macro just that the code explicitly says "we
are not using this" rather than making the reader wonder if they forgot to
name the variable?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100902/bd714018/attachment.html>


More information about the vtk-developers mailing list