~dsilvers/libgfshare/master

Viewing all changes in revision 51.

  • Committer: Daniel Silverstone
  • Author(s): Patrick Fasano
  • Date: 2014-05-12 22:18:45 UTC
  • Revision ID: git-v1:c8c16932c9e1e82615f36d45d1a9698e1378b3ae
fix uninitialized variable compile error

Previous code gave the following error when compiled with -Werror=maybe-initialized
> ../tools/gfcombine.c: In function 'main':
> ../tools/gfcombine.c:127:9: error: 'len1' may be used uninitialized in this function [-Werror=maybe-uninitialized]
>        if( len1 != getlen(inputfiles[1]) ) {
>          ^
> ../tools/gfcombine.c:101:16: note: 'len1' was declared here
>    unsigned int len1;
>                 ^
> cc1: all warnings being treated as errors
> make: *** [tools/gfcombine.o] Error 1

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: