Skip to content

Commit 110024b

Browse files
committed
COMP: Fix unused argc and argv variable warnings.
Fix unused `argc` and `argv` variable warnings. Fixes: ``` In file included from -WikiExamples/Modules/Remote/WikiExamples/Registration/TestDeformationFieldTransform.cxx:2: ITK/Modules/Remote/WikiExamples/Registration/DeformationFieldTransform.cxx: In function 'int TestDeformationFieldTransform(int, char**)': [CTest: warning matched] Modules/Remote/WikiExamples/Registration/DeformationFieldTransform.cxx:22:14: warning: unused parameter 'argc' [-Wunused-parameter] int main(int argc, char * argv[]) ~~~~^~~~ [CTest: warning matched] Modules/Remote/WikiExamples/Registration/DeformationFieldTransform.cxx:22:27: warning: unused parameter 'argv' [-Wunused-parameter] int main(int argc, char * argv[]) ~~~~~~~^~~~~~ ``` -like warnings reported at: http://testing.cdash.org/viewBuildError.php?type=1&buildid=5793174
1 parent e613468 commit 110024b

16 files changed

+16
-16
lines changed

Registration/DeformationFieldTransform.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ using ImageType = itk::Image< PixelType, Dimension >;
1919
static void CreateFixedImage(ImageType::Pointer image);
2020
static void CreateMovingImage(ImageType::Pointer image);
2121

22-
int main(int argc, char * argv[])
22+
int main( int itkNotUsed( argc ), char * itkNotUsed( argv )[] )
2323
{
2424
#if ITK_VERSION_MAJOR < 4
2525
using VectorComponentType = float;

Registration/ImageRegistrationMethodBSpline.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ using ImageType = itk::Image< PixelType, ImageDimension >;
2525
static void CreateEllipseImage(ImageType::Pointer image);
2626
static void CreateCircleImage(ImageType::Pointer image);
2727

28-
int main( int argc, char *argv[] )
28+
int main( int itkNotUsed( argc ), char * itkNotUsed( argv )[] )
2929
{
3030

3131
const unsigned int SpaceDimension = ImageDimension;

Registration/LandmarkBasedTransformInitializer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using ImageType = itk::Image< PixelType, Dimension >;
1212
static void CreateFixedImage(ImageType::Pointer image);
1313
static void CreateMovingImage(ImageType::Pointer image);
1414

15-
int main(int argc, char * argv[])
15+
int main( int itkNotUsed( argc ), char * itkNotUsed( argv )[] )
1616
{
1717
using VectorComponentType = float;
1818

Registration/MutualInformation.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ using ImageType = itk::Image< PixelType, Dimension >;
1919
static void CreateEllipseImage(ImageType::Pointer image);
2020
static void CreateCircleImage(ImageType::Pointer image);
2121

22-
int main( int argc, char *argv[] )
22+
int main( int itkNotUsed( argc ), char * itkNotUsed( argv )[] )
2323
{
2424
// Generate synthetic fixed and moving images
2525
ImageType::Pointer fixedImage = ImageType::New();

Registration/MutualInformationAffine.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ using ImageType = itk::Image< PixelType, Dimension >;
1919
static void CreateEllipseImage(ImageType::Pointer image);
2020
static void CreateCircleImage(ImageType::Pointer image);
2121

22-
int main( int argc, char *argv[] )
22+
int main( int itkNotUsed( argc ), char * itkNotUsed( argv )[] )
2323
{
2424
// Generate synthetic fixed and moving images
2525
ImageType::Pointer fixedImage = ImageType::New();

SimpleOperations/BresenhamLine.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int main(int argc, char *argv[])
1616
static void Vector();
1717
static void Line();
1818

19-
int main(int argc, char *argv[])
19+
int main( int itkNotUsed( argc ), char * itkNotUsed( argv )[] )
2020
{
2121
Vector();
2222
Line();

SimpleOperations/ParaviewColormap.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using RGBImageType = itk::Image<RGBPixelType, 2>;
1212
using FloatImageType = itk::Image<float, 2>;
1313
using UnsignedCharImageType = itk::Image<unsigned char, 2>;
1414

15-
int main( int argc, char *argv[])
15+
int main( int itkNotUsed( argc ), char * itkNotUsed( argv )[] )
1616
{
1717
FloatImageType::Pointer image = FloatImageType::New();
1818

SimpleOperations/RGBPixel.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <itkImage.h>
22
#include <itkRGBPixel.h>
33

4-
int main(int argc, char *argv[])
4+
int main( int itkNotUsed( argc ), char * itkNotUsed( argv )[] )
55
{
66
using RGBPixelType = itk::RGBPixel<unsigned char>;
77
using RGBImageType = itk::Image<RGBPixelType>;

SimpleOperations/ScalarToRGBColormapImageFilter.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using RGBImageType = itk::Image<RGBPixelType, 2>;
1111
using FloatImageType = itk::Image<float, 2>;
1212
using UnsignedCharImageType = itk::Image<unsigned char, 2>;
1313

14-
int main( int argc, char *argv[])
14+
int main( int itkNotUsed( argc ), char * itkNotUsed( argv )[] )
1515
{
1616
FloatImageType::Pointer image = FloatImageType::New();
1717

SimpleOperations/TranslationTransform.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using ImageType = itk::Image<unsigned char, 2>;
1111

1212
static void CreateImage(ImageType::Pointer image);
1313

14-
int main(int argc, char *argv[])
14+
int main( int itkNotUsed( argc ), char * itkNotUsed( argv )[] )
1515
{
1616
ImageType::Pointer image = ImageType::New();
1717
CreateImage(image);

0 commit comments

Comments
 (0)