[Bug testsuite/84324] New: objc/execute/exceptions/matcher-1.m:27:10: warning: return with a value, in function returning void

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Feb 11 18:23:00 GMT 2018


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

            Bug ID: 84324
           Summary: objc/execute/exceptions/matcher-1.m:27:10: warning:
                    return with a value, in function returning void
           Product: gcc
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

objc/execute/exceptions/matcher-1.m has

void
my_exception_matcher(Class match_class, id exception)
{
  /* Always matches.  */
  return 1;
}

/export/gnu/import/git/sources/gcc/gcc/testsuite/objc/execute/exceptions/matcher-1.m:
In function \u2018my_exception_matcher\u2019:
/export/gnu/import/git/sources/gcc/gcc/testsuite/objc/execute/exceptions/matcher-1.m:27:10:
warning: \u2018return\u2019 with a value, in function returning void

This function should return int.  Otherwise, test will fail.


More information about the Gcc-bugs mailing list