[PATCH 0/2] squelch some "gcc -O3 -Wmaybe-uninitialized" warnings
- From
Jeff King <peff@peff.net>
- Date
- Aug 31, 2016, 03:39 UTC
- Message-ID
- <20160831033934.m2at7ci5f6lty5nb@sigill.intra.peff.net>
I happened to be compiling git with -O3 today, and noticed we generate some warnings about uninitialized variables (I actually compile with -Wall, but the only false positives I saw were these).
Here are patches to squelch them.
[1/2]: error_errno: use constant return similar to error() [2/2]: color_parse_mem: initialize "struct color" temporary
-Peff