@@ -57,6 +57,7 @@ NITFPRIV(NITF_BOOL) MemorySource_contigRead(
57
57
nitf_Off size ,
58
58
nitf_Error * error )
59
59
{
60
+ (void ) error ; /* Suppresses a warning. Param seems to exist for consistency purposes. Not used. */
60
61
memcpy (buf ,
61
62
(const nitf_Uint8 * )memorySource -> data + memorySource -> mark ,
62
63
(size_t )size );
@@ -69,8 +70,9 @@ NITFPRIV(NITF_BOOL) MemorySource_offsetRead(
69
70
MemorySourceImpl * memorySource ,
70
71
void * buf ,
71
72
nitf_Off size ,
72
- nitf_Error * error )
73
+ nitf_Error * error )
73
74
{
75
+ (void ) error ;
74
76
size_t destOffset = 0 ;
75
77
const nitf_Uint8 * const src = (const nitf_Uint8 * )memorySource -> data ;
76
78
nitf_Uint8 * const dest = (nitf_Uint8 * )buf ;
@@ -121,18 +123,19 @@ NITFPRIV(void) MemorySource_destruct(NITF_DATA * data)
121
123
}
122
124
123
125
124
- NITFPRIV (nitf_Off ) MemorySource_getSize (NITF_DATA * data , nitf_Error * e )
126
+ NITFPRIV (nitf_Off ) MemorySource_getSize (NITF_DATA * data , nitf_Error * error )
125
127
{
128
+ (void ) error ;
126
129
MemorySourceImpl * memorySource = (MemorySourceImpl * ) data ;
127
130
return memorySource ? memorySource -> size : 0 ;
128
131
}
129
132
130
- NITFPRIV (NITF_BOOL ) MemorySource_setSize (NITF_DATA * data , nitf_Off size , nitf_Error * e )
133
+ NITFPRIV (NITF_BOOL ) MemorySource_setSize (NITF_DATA * data , nitf_Off size , nitf_Error * error )
131
134
{
132
135
MemorySourceImpl * memorySource = (MemorySourceImpl * ) data ;
133
136
if (!memorySource )
134
137
{
135
- nitf_Error_init (e , "Null pointer reference" ,
138
+ nitf_Error_init (error , "Null pointer reference" ,
136
139
NITF_CTXT , NITF_ERR_INVALID_OBJECT );
137
140
return NITF_FAILURE ;
138
141
}
@@ -221,19 +224,20 @@ NITFPRIV(void) FileSource_destruct(NITF_DATA * data)
221
224
}
222
225
}
223
226
224
- NITFPRIV (nitf_Off ) IOSource_getSize (NITF_DATA * data , nitf_Error * e )
227
+ NITFPRIV (nitf_Off ) IOSource_getSize (NITF_DATA * data , nitf_Error * error )
225
228
{
229
+ (void ) error ;
226
230
IOSourceImpl * source = (IOSourceImpl * ) data ;
227
231
return source ? (nitf_Off )source -> size : 0 ;
228
232
}
229
233
230
234
231
- NITFPRIV (NITF_BOOL ) IOSource_setSize (NITF_DATA * data , nitf_Off size , nitf_Error * e )
235
+ NITFPRIV (NITF_BOOL ) IOSource_setSize (NITF_DATA * data , nitf_Off size , nitf_Error * error )
232
236
{
233
237
IOSourceImpl * source = (IOSourceImpl * ) data ;
234
238
if (!source )
235
239
{
236
- nitf_Error_init (e , "Null pointer reference" ,
240
+ nitf_Error_init (error , "Null pointer reference" ,
237
241
NITF_CTXT , NITF_ERR_INVALID_OBJECT );
238
242
return NITF_FAILURE ;
239
243
}
0 commit comments