[krbdev.mit.edu #8026] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Mon Nov 3 17:37:47 EST 2014


Fix spurious gcc warning in cc_file.c

gcc 4.6.3 (present in Ubuntu 12.04) is smart enough to look at
get_size and see that it does not always assign to *size_out, but not
smart enough to figure out that it always assigns to *size_out when it
returns 0.  As a result, it outputs two warnings which we treat as
errors.  Add an initial assignment to *size_out at the beginning of
get_size to work around this.

https://github.com/krb5/krb5/commit/35ab0d013f35a9840d0fbcb8de3b194eb501199d
Author: Greg Hudson <ghudson at mit.edu>
Commit: 35ab0d013f35a9840d0fbcb8de3b194eb501199d
Branch: master
 src/lib/krb5/ccache/cc_file.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)



More information about the krb5-bugs mailing list