Project

General

Profile

Bug #6066

Fix "control may reach end of non-void function" warnings for clang

Added by drbrain (Eric Hodel) over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 2.0.0dev (2012-02-23 trunk 34755) [x86_64-darwin11.3.0]
Backport:
[ruby-core:42815]

Description

=begin
clang 3.1 is more picky about "control may reach end of non-void function"

The attached patches contain add (({return Qnil; /* not reached */})) or the equivalent where the warnings occurred.
=end


Files

fiddle.return.patch (404 Bytes) fiddle.return.patch ext/fiddle patch drbrain (Eric Hodel), 02/23/2012 09:39 AM
ripper.return.patch (391 Bytes) ripper.return.patch ext/ripper patch drbrain (Eric Hodel), 02/23/2012 09:39 AM
socket.return.patch (774 Bytes) socket.return.patch ext/socket patch drbrain (Eric Hodel), 02/23/2012 09:39 AM
tk.return.patch (1.46 KB) tk.return.patch ext/tk patch drbrain (Eric Hodel), 02/23/2012 09:39 AM
return.combined.patch (10.4 KB) return.combined.patch Combined patch for core and ext/ drbrain (Eric Hodel), 02/23/2012 09:39 AM
core.return.patch (5.75 KB) core.return.patch Patch for C files in the project root drbrain (Eric Hodel), 02/23/2012 09:39 AM
bigdecimal.return.patch (409 Bytes) bigdecimal.return.patch ext/bigdecimal patch drbrain (Eric Hodel), 02/23/2012 09:39 AM
digest.return.patch (904 Bytes) digest.return.patch ext/digest patch drbrain (Eric Hodel), 02/23/2012 09:39 AM
dl.return.patch (354 Bytes) dl.return.patch ext/dl patch drbrain (Eric Hodel), 02/23/2012 09:39 AM
return.UNREACHABLE.patch (10.9 KB) return.UNREACHABLE.patch Updated combined patch using UNREACHABLE drbrain (Eric Hodel), 02/26/2012 01:39 PM
return.not_reached.convert.patch (10.7 KB) return.not_reached.convert.patch update /* not reached */ to UNREACHABLE drbrain (Eric Hodel), 02/26/2012 02:08 PM

Also available in: Atom PDF