https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115540

            Bug ID: 115540
           Summary: "gcc/m2/mc-boot-ch/Gtermios.cc:292:20: error:
                    return-statement with a value, in function returning
                    'void' [-fpermissive]" when HAVE_CFMAKERAW is defined
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: modula2
          Assignee: gaius at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

I got a bootstrap failure on cfarm119 with:

   286  /* cfmakeraw - sets the terminal to raw mode.  */
   287  
   288  void
   289  EXPORT (cfmakeraw) (struct termios *t)
   290  {
   291  #if defined(HAVE_CFMAKERAW)
   292    return cfmakeraw (t);
   293  #endif
   294  }

../../src/gcc/m2/mc-boot-ch/Gtermios.cc: In function 'void
termios_cfmakeraw(termios*)':
../../src/gcc/m2/mc-boot-ch/Gtermios.cc:292:20: error: return-statement with a
value, in function returning 'void' [-fpermissive]
  292 |   return cfmakeraw (t);
      |          ~~~~~~~~~~^~~

Seems to have been present since 1eee94d351774cdc2efc8ee508b82d065184c6ee.

Reply via email to