Date: Fri, 16 Dec 2016 07:54:36 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 215333] head -r310046 for powerpc family: sys/powerpc/powerpc/intr_machdep.c's i->trig == -1 if-tests reported as always false by compiler Message-ID: <bug-215333-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215333 Bug ID: 215333 Summary: head -r310046 for powerpc family: sys/powerpc/powerpc/intr_machdep.c's i->trig =3D=3D -1 if-tests reported as always false by compiler Product: Base System Version: CURRENT Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: markmi@dsl-only.net --- intr_machdep.o --- /usr/src/sys/powerpc/powerpc/intr_machdep.c:454:15: warning: comparison of constant -1 with expression of type 'enum intr_trigger' is always false [-Wtautological-constant-out-of-range-compare] if (i->trig =3D=3D -1) ~~~~~~~ ^ ~~ /usr/src/sys/powerpc/powerpc/intr_machdep.c:500:16: warning: comparison of constant -1 with expression of type 'enum intr_trigger' is always false [-Wtautological-constant-out-of-range-compare] if (i->trig =3D=3D -1) ~~~~~~~ ^ ~~ Justin Hibbits wrote about the note that I sent him that listed the above: This may or may not be a problem, depending on optimization settings. Can = you file a bug for this so it doesn't get lost? I also noted: There are other comparisons around with a constant result at compile time. But they tend to be in less central areas like zfs. Similarly for some other types of compiler reports. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215333-8>