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

[Nit] Lots of enumerated type warnings

From
Randall S. Becker <rsbecker@nexbridge.com>
Date
Jan 19, 2018, 23:17 UTC
Message-ID
<001601d3917b$c1ade3c0$4509ab40$@nexbridge.com>

So here a bit of a nit or nano-quibble that I have. Call it my "warnings OCD" if you want. I'm seeing an increase in the enumerated type warnings coming from my use of the c99 compiler for compiling git over time (loads more for 2.16.0 compared to 2.3.7 when I took it on). What is the general feeling on these? I would be willing do static casts rather than see the warnings, mostly because I advocate in public that warnings are actually future potential errors, so clean compiles are better. I don't see this conflicting with anything in gcc. Is there a desire/need to clean up this stuff? I can take a stab at gradually cleaning this up when $DAYJOB and #FAMILY don't conflict.

Although, given the choice, I'd rather look into that whole --via concept from a different thread ;-)

Cheers, Randall

-- Brief whoami:
 NonStop developer since approximately 211288444200000000
 UNIX developer since approximately 421664400
-- In my real life, I talk too much.
Next: Junio C Hamano
Message 1 of 5 in “[Nit] Lots of enumerated type warnings”
  1. Randall S. BeckerJan 19, 2018
  2. Junio C HamanoJan 22, 2018
  3. Randall S. BeckerJan 22, 2018
  4. Junio C HamanoJan 22, 2018
  5. Randall S. BeckerJan 23, 2018

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.