Opened 8 years ago

Closed 8 years ago

#7537 closed bug (fixed)

Patch for the "'noreturn' function returns" warning on call to assert(0)

Reported by: unitedroad Owned by: korli
Priority: normal Milestone: R1
Component: System/POSIX Version: R1/alpha2
Keywords: noreturn, assert Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

I am submitting a patch for the "'noreturn' function returns" warning on call to assert(0).

Some applications expect assert(0) to be a noreturn function and rely on this. Hence, the calling functions are declared as noreturn themselves. When this is not so, GCC throws the warning.

Attachments (1)

assert.patch (618 bytes) - added by unitedroad 8 years ago.
Patch

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by unitedroad

Attachment: assert.patch added

Patch

comment:1 Changed 8 years ago by unitedroad

Has a Patch: set

comment:2 Changed 8 years ago by korli

Owner: changed from nobody to korli
Status: newassigned

comment:3 Changed 8 years ago by korli

Resolution: fixed
Status: assignedclosed

Applied in hrev41628. Thanks!

Note: See TracTickets for help on using tickets.