Thread (19 messages) 19 messages, 11 authors, 2020-10-20

Re: [Ocfs2-devel] [RFC] treewide: cleanup unreachable breaks

From: Matthew Wilcox <willy@infradead.org>
Date: 2020-10-18 18:59:58
Also in: alsa-devel, amd-gfx, bpf, intel-wired-lan, keyrings, linux-acpi, linux-amlogic, linux-arm-kernel, linux-block, linux-can, linux-crypto, linux-edac, linux-gpio, linux-iio, linux-integrity, linux-media, linux-pci, linux-pm, linux-samsung-soc, linux-scsi, linux-security-module, linux-serial, linux-usb, linux-watchdog, linux-wireless, lkml, nouveau, nvdimm, ocfs2-devel, platform-driver-x86, virtualization, xen-devel

On Sat, Oct 17, 2020 at 09:09:28AM -0700, trix@redhat.com wrote:
clang has a number of useful, new warnings see
https://urldefense.com/v3/__https://clang.llvm.org/docs/DiagnosticsReference.html__;!!GqivPVa7Brio!Krxz78O3RKcB9JBMVo_F98FupVhj_jxX60ddN6tKGEbv_cnooXc1nnBmchm-e_O9ieGnyQ$ 
Please get your IT department to remove that stupidity.  If you can't,
please send email from a non-Red Hat email address.

I don't understand why this is a useful warning to fix.  What actual
problem is caused by the code below?
return and break

 	switch (c->x86_vendor) {
 	case X86_VENDOR_INTEL:
 		intel_p5_mcheck_init(c);
 		return 1;
-		break;
Sure, it's unnecessary, but it's not masking a bug.  It's not unclear.
Why do we want to enable this warning?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help