Skip to content

Commit

Permalink
COMP: Fix unused general macros
Browse files Browse the repository at this point in the history
This is to fix the -Wunused-macros warning from clang. This is about fixing general macros used in the code.

In the commit, the macros are removed. However, I am wondering if we should comment them since someone might use them in the future.
  • Loading branch information
andrei-sandor authored and hjmjohnson committed May 31, 2024
1 parent b208179 commit d5a7a1d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions Modules/IO/BioRad/src/itkBioRadImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
#include "itkMakeUniqueForOverwrite.h"

#define BIORAD_HEADER_LENGTH 76
#define BIORAD_NOTE_LENGTH 96
#define BIORAD_NOTE_TEXT_LENGTH 80
#define BIORAD_RGB_LUT_LENGTH 768
// #define BIORAD_NOTE_LENGTH 96
// #define BIORAD_NOTE_LENGTH 80
// #define BIORAD_RGB_LUT_LENGTH 768
#define BIORAD_FILE_ID_OFFSET 54
#define BIORAD_MAGIC_NUMBER 12345

Expand Down
44 changes: 22 additions & 22 deletions Modules/IO/GIPL/src/itkGiplImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,34 @@ class GiplImageIOInternals
#define GIPL_INT 32
#define GIPL_FLOAT 64
#define GIPL_DOUBLE 65
#define GIPL_C_SHORT 144
#define GIPL_C_INT 160
#define GIPL_C_FLOAT 192
#define GIPL_C_DOUBLE 193
#define GIPL_SURFACE 200
#define GIPL_POLYGON 201
// #define GIPL_C_SHORT 144
// #define GIPL_C_INT 160
// #define GIPL_C_FLOAT 192
// #define GIPL_C_DOUBLE 193
// #define GIPL_SURFACE 200
// #define GIPL_POLYGON 201

/* ORIENTATION DEFINITIONS (flag1) */

#define UNDEFINED 0
#define UNDEFINED_PROJECTION 1
#define AP_PROJECTION 2
#define LATERAL_PROJECTION 3
#define OBLIQUE_PROJECTION 4
#define UNDEFINED_TOMO 8
#define AXIAL 9
#define CORONAL 10
#define SAGITTAL 11
#define OBLIQUE_TOMO 12
// #define UNDEFINED 0
// #define UNDEFINED_PROJECTION 1
// #define AP_PROJECTION 2
// #define LATERAL_PROJECTION 3
// #define OBLIQUE_PROJECTION 4
// #define UNDEFINED_TOMO 8
// #define AXIAL 9
// #define CORONAL 10
// #define SAGITTAL 11
// #define OBLIQUE_TOMO 12

/* FORMAT DEFINITIONS */

#define FORMAT_GIPL 0
#define FORMAT_GIPL_STRING "Gipl"
#define FORMAT_MAYO 1
#define FORMAT_MAYO_STRING "Mayo"
#define FORMAT_NM_IGE 2
#define FORMAT_NM_IGE_STRING "Starcam"
// #define FORMAT_GIPL 0
// #define FORMAT_GIPL_STRING "Gipl"
// #define FORMAT_MAYO 1
// #define FORMAT_MAYO_STRING "Mayo"
// #define FORMAT_NM_IGE 2
// #define FORMAT_NM_IGE_STRING "Starcam"

#define GIPL_MAGIC_NUMBER 0xefffe9b0
#define GIPL_MAGIC_NUMBER2 0x2ae389b8
Expand Down
2 changes: 1 addition & 1 deletion Modules/IO/Siemens/src/itkSiemensVisionImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ SiemensVisionImageIO::ReadHeader(const char * FileNameToRead)
# define DB(x)
#endif

#define GE_PROD_STR "SIEMENS"
// #define GE_PROD_STR "SIEMENS"
#define TEMPLEN 2048
auto * hdr = new GEImageHeader;
if (hdr == nullptr)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
// Data definitions
#define IMGWIDTH 16
#define IMGHEIGHT 1
#define NFRAMES 1
#define NUMBANDS 2
#define NDIMENSION 3
// #define NFRAMES 1
// #define NUMBANDS 2
// #define NDIMENSION 3

#define CDBKWIDTH 4
#define CDBKHEIGHT 1
Expand Down

0 comments on commit d5a7a1d

Please sign in to comment.