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

            Bug ID: 102073
           Summary: gcc/ada/socket.c: 2 * missing return
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

1.

trunk.git/gcc/ada/socket.c:308:3: error: Found a exit path from function with
non-void return type that has missing return statement [missingReturn]

Source code is

  ret->h_length    = 4;
  ret->h_addr_list = &vxw_h_addr_list;
}

2.

gcc/ada/socket.c:540:7: error: Found a exit path from function with non-void
return type that has missing return statement [missingReturn]

Source code is

  }

#if defined (__vxworks)
  return (inet_aton (src, dst) == OK);

Seemingly, if __vxworks, _WIN32, __hpux__ are all not defined 
then fall through occurs.

Thanks to cppcheck for finding these two.

Reply via email to