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

            Bug ID: 103492
           Summary: 2 * new warnings in clang build
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

../../trunk.git/gcc/fold-const-call.c:432:1: warning: non-void function does
not return a value in all control paths [-Wreturn-type]
../../trunk.git/gcc/fold-const-call.c:465:1: warning: non-void function does
not return a value in all control paths [-Wreturn-type]

It looks like clang is being a bit keen. 

Suggest add a simple return false at the end of a couple of functions.
Either that or start decorating the switch statements in some way.

Reply via email to