[vtk-developers] Unused arguments warnings

Bill Lorensen bill.lorensen at gmail.com
Thu Sep 2 15:37:30 EDT 2010


int TestName(int, char*[])

the

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

is really for internal vtk developers.

On Thu, Sep 2, 2010 at 3:01 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>



More information about the vtk-developers mailing list