@@ -62,57 +62,68 @@ namespace NeXus {
6262
6363 template <>
6464 NXDLL_EXPORT NXnumtype getType (char number) {
65+ (void )number; // Avoid compiler warning
6566 return CHAR;
6667 }
6768
6869 // template specialisations for types we know
6970 template <>
7071 NXDLL_EXPORT NXnumtype getType (float number) {
72+ (void )number; // Avoid compiler warning
7173 return FLOAT32;
7274 }
7375
7476 template <>
7577 NXDLL_EXPORT NXnumtype getType (double number) {
78+ (void )number; // Avoid compiler warning
7679 return FLOAT64;
7780 }
7881
7982 template <>
8083 NXDLL_EXPORT NXnumtype getType (int8_t number) {
84+ (void )number; // Avoid compiler warning
8185 return INT8;
8286 }
8387
8488 template <>
8589 NXDLL_EXPORT NXnumtype getType (uint8_t number) {
90+ (void )number; // Avoid compiler warning
8691 return UINT8;
8792 }
8893
8994 template <>
9095 NXDLL_EXPORT NXnumtype getType (int16_t number) {
96+ (void )number; // Avoid compiler warning
9197 return INT16;
9298 }
9399
94100 template <>
95101 NXDLL_EXPORT NXnumtype getType (uint16_t number) {
102+ (void )number; // Avoid compiler warning
96103 return UINT16;
97104 }
98105
99106 template <>
100107 NXDLL_EXPORT NXnumtype getType (int32_t number) {
108+ (void )number; // Avoid compiler warning
101109 return INT32;
102110 }
103111
104112 template <>
105113 NXDLL_EXPORT NXnumtype getType (uint32_t number) {
114+ (void )number; // Avoid compiler warning
106115 return UINT32;
107116 }
108117
109118 template <>
110119 NXDLL_EXPORT NXnumtype getType (int64_t number) {
120+ (void )number; // Avoid compiler warning
111121 return INT64;
112122 }
113123
114124 template <>
115125 NXDLL_EXPORT NXnumtype getType (uint64_t number) {
126+ (void )number; // Avoid compiler warning
116127 return UINT64;
117128 }
118129
@@ -127,11 +138,13 @@ namespace NeXus {
127138#define ARRAY_OFFSET 0 /* can dimension an array with zero elements */
128139#endif /* _MSC_VER */
129140
141+ /*
130142static int check_float_too_big[4 - sizeof(float) + ARRAY_OFFSET]; // error if float > 4 bytes
131143static int check_float_too_small[sizeof(float) - 4 + ARRAY_OFFSET]; // error if float < 4 bytes
132144static int check_double_too_big[8 - sizeof(double) + ARRAY_OFFSET]; // error if double > 8 bytes
133145static int check_double_too_small[sizeof(double) - 8 + ARRAY_OFFSET]; // error if double < 8 bytes
134146static int check_char_too_big[1 - sizeof(char) + ARRAY_OFFSET]; // error if char > 1 byte
147+ */
135148
136149namespace {
137150
0 commit comments