From: <sba...@us...> - 2015-01-07 21:37:26
|
Revision: 5113 http://sourceforge.net/p/fuse-emulator/code/5113 Author: sbaldovi Date: 2015-01-07 21:37:19 +0000 (Wed, 07 Jan 2015) Log Message: ----------- Remove "Function call argument is an uninitialized value" warning. There's no chance that it is, but clang doesn't realise that. Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/test/test.c Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2015-01-07 21:29:18 UTC (rev 5112) +++ trunk/libspectrum/hacking/ChangeLog 2015-01-07 21:37:19 UTC (rev 5113) @@ -967,3 +967,6 @@ 20141230 autogen.sh: select glibtoolize where required (Sergio via fuse). 20150107 rzx.c: rewrite some conditions for RZX finalisation in a more logical way (thanks, clang static analyser) (Sergio). +20150107 test/test.c: remove "Function call argument is an uninitialized value" + warning. There's no chance that it is, but clang doesn't realise that + (Sergio). Modified: trunk/libspectrum/test/test.c =================================================================== --- trunk/libspectrum/test/test.c 2015-01-07 21:29:18 UTC (rev 5112) +++ trunk/libspectrum/test/test.c 2015-01-07 21:37:19 UTC (rev 5113) @@ -497,8 +497,8 @@ test_24( void ) { const char *filename = DYNAMIC_TEST_PATH( "complete-tzx.tzx" ); - libspectrum_byte *buffer; - size_t filesize; + libspectrum_byte *buffer = NULL; + size_t filesize = 0; libspectrum_tape *tape; libspectrum_tape_iterator it; libspectrum_tape_block *block; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |