Skip to content

Commit e474608

Browse files
committed
COMP: Fix MSVC build error in encodingZRL.c
This commit fixes a regression introduced in r6219 (first pass at ZRL decompression). When building teem using microsoft compiler from vs2008, the following error was reported: ..\teem\src\nrrd\encodingZRL.c(38) : error C2143: syntax error : missing ';' before 'type'
1 parent b83e546 commit e474608

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/nrrd/encodingZRL.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ static int
3434
_nrrdEncodingZRL_read(FILE *file, void *data, size_t elementNum,
3535
Nrrd *nrrd, NrrdIoState *nio) {
3636

37-
AIR_UNUSED(nio);
3837
unsigned char *output_buffer = (unsigned char *) data;
3938
size_t toread = elementNum*nrrdElementSize(nrrd);
4039
/*
@@ -44,6 +43,10 @@ _nrrdEncodingZRL_read(FILE *file, void *data, size_t elementNum,
4443
airEnumStr(nrrdType, nrrd->type)); */
4544
int cc, dd;
4645
unsigned int j = 0;
46+
47+
AIR_UNUSED(nrrd);
48+
AIR_UNUSED(nio);
49+
4750
while (j < toread) {
4851
cc = fgetc(file);
4952
if (cc == 0) {

0 commit comments

Comments
 (0)