public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug modula2/115540] New: "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
Date: Tue, 18 Jun 2024 13:24:03 +0000	[thread overview]
Message-ID: <bug-115540-4@http.gcc.gnu.org/bugzilla/> (raw)

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	other threads:[~2024-06-18 13:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-18 13:24 dmalcolm at gcc dot gnu.org [this message]
2024-06-25 18:12 ` [Bug modula2/115540] " gaius at gcc dot gnu.org
2024-06-25 18:13 ` gaius at gcc dot gnu.org
2024-06-25 20:38 ` cvs-commit at gcc dot gnu.org
2024-06-25 20:40 ` gaius at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-115540-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).