[haiku-bugs] [Haiku] #7537: Patch for the "'noreturn' function returns" warning on call to assert(0)

  • From: "unitedroad" <trac@xxxxxxxxxxxx>
  • Date: Fri, 20 May 2011 19:33:04 -0000

#7537: Patch for the "'noreturn' function returns" warning on call to assert(0)
------------------------------+-------------------------
 Reporter:  unitedroad        |        Owner:  nobody
     Type:  bug               |       Status:  new
 Priority:  normal            |    Milestone:  R1
Component:  System/POSIX      |      Version:  R1/alpha2
 Keywords:  noreturn, assert  |   Blocked By:
 Blocking:                    |  Has a Patch:  0
 Platform:  All               |
------------------------------+-------------------------
 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.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7537>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: