[Lldb-commits] [lldb] r258546 - Silence -Wreturn-type warnings

Joerg Sonnenberger via lldb-commits lldb-commits at lists.llvm.org
Sat Jan 23 15:24:07 PST 2016


On Fri, Jan 22, 2016 at 08:26:30PM -0000, Saleem Abdulrasool via lldb-commits wrote:
> Author: compnerd
> Date: Fri Jan 22 14:26:30 2016
> New Revision: 258546
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=258546&view=rev
> Log:
> Silence -Wreturn-type warnings
> 
> Address a couple of instances of -Wreturn-type warning from GCC.  The switches
> are covered, add an llvm_unreachable to the end of the functions to silence the
> warning.  NFC.

Huh? This is wrong. A switch with a default branch should never trigger
a fall through waring.

Joerg


More information about the lldb-commits mailing list