Skip to content

Commit 0ecdc0a

Browse files
khorbentimg236
authored andcommitted
fmemopen.c: improve portability
This replaces a "#pragma unused()" with a more portable way to mark a function parameter as unused.
1 parent b59ab06 commit 0ecdc0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fmemopen.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ static int closefn(void *handler) {
9292
}
9393

9494
FILE *fmemopen(void *buf, size_t size, const char *mode) {
95-
#pragma unused(mode)
95+
(void) mode;
96+
9697
// This data is released on fclose.
9798
fmem_t* mem = (fmem_t *) malloc(sizeof(fmem_t));
9899

0 commit comments

Comments
 (0)