diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2015-07-23 08:49:13 -0400 |
---|---|---|
committer | Ben Gamari <bgamari.foss@gmail.com> | 2015-07-23 08:49:13 -0400 |
commit | 4c8e69e0c09bfee989b747ba4028686f48cf8aa1 (patch) | |
tree | d212d7d325ca0cffd236aa168f41306ce7d8721d /rts | |
parent | 1852c3d2bb841246a790de1a67f8f140a5cccef3 (diff) | |
download | haskell-4c8e69e0c09bfee989b747ba4028686f48cf8aa1.tar.gz |
rts/sm: Add missing argument names in function definitions
C99 does not allow unnamed parameters in definition argument lists [1].
[1] http://stackoverflow.com/questions/8776810/parameter-name-omitted-c-vs-c
Diffstat (limited to 'rts')
-rw-r--r-- | rts/sm/MBlock.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rts/sm/MBlock.c b/rts/sm/MBlock.c index c77a9e01fd..35a11bf589 100644 --- a/rts/sm/MBlock.c +++ b/rts/sm/MBlock.c @@ -120,7 +120,7 @@ static void *getAllocatedMBlock(free_list **start_iter, W_ startingAt) return (void*)p; } -void * getFirstMBlock(void **state) +void * getFirstMBlock(void **state STG_UNUSED) { free_list *fake_state; free_list **casted_state; @@ -134,7 +134,7 @@ void * getFirstMBlock(void **state) return getAllocatedMBlock(casted_state, mblock_address_space_begin); } -void * getNextMBlock(void **state, void *mblock) +void * getNextMBlock(void **state STG_UNUSED, void *mblock) { free_list *fake_state = free_list_head; free_list **casted_state; @@ -442,7 +442,7 @@ void * mapEntryToMBlock(nat i) return (void *)((StgWord)i << MBLOCK_SHIFT); } -void * getFirstMBlock(void **) +void * getFirstMBlock(void **state STG_UNUSED) { nat i; @@ -452,7 +452,7 @@ void * getFirstMBlock(void **) return NULL; } -void * getNextMBlock(void **, void *mblock) +void * getNextMBlock(void **state STG_UNUSED, void *mblock) { nat i; @@ -464,7 +464,7 @@ void * getNextMBlock(void **, void *mblock) #elif SIZEOF_VOID_P == 8 -void * getNextMBlock(void **, void *p) +void * getNextMBlock(void **state STG_UNUSED, void *p) { MBlockMap *map; nat off, j; @@ -501,7 +501,7 @@ void * getNextMBlock(void **, void *p) return NULL; } -void * getFirstMBlock(void **) +void * getFirstMBlock(void **state STG_UNUSED) { MBlockMap *map = mblock_maps[0]; nat line_no, off; |