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

Re: [PATCH] Rewrite some function exit paths to avoid "unreachable code" traps

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Nov 17, 2007, 14:31 UTC
Message-ID
<200711171531.09545.robin.rosenberg.lists@dewire.com>
In-Reply-To
<20071117122317.GA2716@steel.home>
lördag 17 november 2007 skrev Alex Riesen:
Show 22 quoted lines
> Robin Rosenberg, Sat, Nov 17, 2007 11:39:32 +0100:
> > lördag 17 november 2007 skrev Alex Riesen:
> > > Noticed by Guido Ostkamp for Sun's Workshop cc.
> > > 
> > > Originally-by: Guido Ostkamp <git@ostkamp.fastmail.fm>
> > > Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
> > > ---
> > > Guido Ostkamp, Fri, Nov 16, 2007 23:52:01 +0100:
> > > >
> > > > What about the xdiff/xdiffi.c problem that should also be solved?
> > > >
> > > 
> > 
> > Please... This just looks bad. I'm sure we'll have fixup patches on the list
> > to fix those gotos. 
> > 
> > Do we support any such stupid compiler that requires a dummy goto?
> 
> It is more for the compilers we don't know about yet.
> 
> Userspace programming, especially with intent to be portable, often
> means supporting *bugs* of the platform where it happens.

*If* it happens. We do not workaround every hypothetical compiler bug or every hypotetical buggy compiler. Compilers we don't know about does not "exist", expect for the perfectly confirming ones, but they aren't buggy.

It seems the return in utf8.c was introduced by mistake and Junio has made his decision now.
-- robin
Previous: Alex Riesen
Message 10 of 10 in “Fix Solaris compiler warnings”
  1. Fix Solaris compiler warningsGuido Ostkamp, Nov 15, 2007
  2. Alex RiesenNov 15, 2007
  3. Junio C HamanoNov 15, 2007
  4. Alex RiesenNov 16, 2007
  5. Junio C HamanoNov 16, 2007
  6. Guido OstkampNov 16, 2007
  7. Rewrite some function exit paths to avoid "unreachable code" trapsAlex Riesen, Nov 17, 2007
  8. Robin RosenbergNov 17, 2007
  9. Alex RiesenNov 17, 2007
  10. Robin RosenbergNov 17, 2007

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.