git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Next: Jeff King
Message 1 of 5 in “squelch some "gcc -O3 -Wmaybe-uninitialized" warnings”
  1. 0/2 squelch some "gcc -O3 -Wmaybe-uninitialized" warningsJeff King, Aug 31, 2016
  2. 1/2 error_errno: use constant return similar to error()Jeff King, Aug 31, 2016
  3. 2/2 color_parse_mem: initialize "struct color" temporaryJeff King, Aug 31, 2016
  4. Junio C HamanoAug 31, 2016
  5. Jeff KingSep 1, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.