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

Re: [PATCH v2 2/2] t/unit-tests/clar: fix -Wmaybe-uninitialized with -Og

From
Patrick Steinhardt <ps@pks.im>
Date
Aug 11, 2025, 09:00 UTC
Message-ID
<aJmxExJgFKxeiHDf@pks.im>
In-Reply-To
<aJWtbGGBOELZN6tp@generichostname>
On Fri, Aug 08, 2025 at 12:55:24AM -0700, Denton Liu wrote:
Show 16 quoted lines
> On Fri, Aug 08, 2025 at 07:48:10AM +0200, Patrick Steinhardt wrote:
> > On Mon, Aug 04, 2025 at 10:31:16PM -0700, Denton Liu wrote:
> > > When building with -Og on gcc 15.1.1, the build produces a warning. In
> > > practice, though, this cannot be hit because `exact` acts as a guard and
> > > that variable can only be set after `matchlen` is already initialized
> > > 
> > > Assign a default value to `matchlen` so that the warning is silenced.
> > 
> > Would you mind creating a PR against upstream [1] so that we also have it
> > over there? Thanks!
> 
> Good idea. PR over at [0]
> 
> -Denton
> 
> [0]: https://github.com/clar-test/clar/pull/119
Thanks, approved and merged now.
Patrick
Previous: Denton Liu
Message 10 of 10 in “fix -Wmaybe-uninitialized with -Og”
  1. fix -Wmaybe-uninitialized with -OgDenton Liu, Aug 4, 2025
  2. Jeff KingAug 4, 2025
  3. Junio C HamanoAug 4, 2025
  4. Jeff KingAug 4, 2025
  5. 0/2 fix -Wmaybe-uninitialized with -OgDenton Liu, Aug 5, 2025
  6. 1/2 remote: bail early from set_head() if missing remote nameDenton Liu, Aug 5, 2025
  7. 2/2 t/unit-tests/clar: fix -Wmaybe-uninitialized with -OgDenton Liu, Aug 5, 2025
  8. Patrick SteinhardtAug 8, 2025
  9. Denton LiuAug 8, 2025
  10. Patrick SteinhardtAug 11, 2025

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.