Skip to content

Commit 2a2f9cc

Browse files
committed
Remove local typedefs in list.c (silences compile-time warning)
1 parent 98f7679 commit 2a2f9cc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

mccode/src/list.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ struct List_position
4343
int index; /* Next element to return. */
4444
};
4545

46-
typedef struct List_header *List;
47-
typedef struct List_position *List_handle;
46+
/* Typedefs suppressed, already defined from mccode.h */
47+
/* typedef struct List_header *List;
48+
typedef struct List_position *List_handle; */
4849

4950
/*******************************************************************************
5051
* Create a new list.
@@ -233,4 +234,5 @@ List list_copy(List from, void * (*copier)(void *)){
233234
list_iterate_end(liter);
234235
}
235236
return to;
236-
}
237+
}
238+

0 commit comments

Comments
 (0)