block: Fix compilation with DEBUG defined
PATCH 1/1 block: Fix compilation with DEBUG defined
gcc does not like passing a NULL where an int value is expected:
block/vvfat.c: In function ‘checkpoint’:block/vvfat.c:2868: error: passing argument 2 of ‘remove_mapping’ makes
integer from pointer without a cast
--- block/vvfat.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
block/vvfat.c +1 -1
@@ -2865,7 +2865,7 @@ static void checkpoint(void) {return ;/* avoid compiler warnings: */ hexdump (NULL ,100 ); -remove_mapping (vvv,NULL ); +remove_mapping (vvv,0 );print_mapping (NULL );print_direntry (NULL ); }
Signature · 1 line
1.7.1
Kevin Wolf
AppliedAm 19.05.2010 22:53, schrieb Riccardo Magliocchetti:
Quoted 7 lines
gcc does not like passing a NULL where an int value is expected:
block/vvfat.c: In function ‘checkpoint’:block/vvfat.c:2868: error: passing argument 2 of ‘remove_mapping’ makes
integer from pointer without a castSigned-off-by Riccardo Magliocchetti <[email protected]>
Thanks, applied to the block branch.
You're probably using a 32 bit platform? I needed another fix to get it compiling on x86_64, which I just sent to the list.
Kevin
Il 20/05/2010 10:43, Kevin Wolf ha scritto:
Quoted 7 lines
Am 19.05.2010 22:53, schrieb Riccardo Magliocchetti:
Quoted 6 lines
gcc does not like passing a NULL where an int value is expected:
block/vvfat.c: In function ‘checkpoint’:block/vvfat.c:2868: error: passing argument 2 of ‘remove_mapping’ makes
integer from pointer without a cast
Quoted 6 lines
Quoted 1 line
Signed-off-by Riccardo Magliocchetti<[email protected]>Thanks, applied to the block branch.
You're probably using a 32 bit platform? I needed another fix to get it compiling on
x86_64, which I just sent to the list.
Thanks, yes i'm on 32bit.
riccardo