https://bugs.llvm.org/show_bug.cgi?id=35123
Davide Italiano <dav...@freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Davide Italiano <dav...@freebsd.org> ---
Can't repro on ToT.
$ ./clang x.c -Os
x.c:9:14: warning: control reaches end of non-void function [-Wreturn-type]
char(fn1)() {}
^
x.c:17:18: warning: use of logical '&&' with constant operand
[-Wconstant-logical-operand]
c = (p1.f4 && 7) > (e && f || j);
^ ~
x.c:17:18: note: use '&' for a bitwise operation
c = (p1.f4 && 7) > (e && f || j);
^~
&
x.c:17:18: note: remove constant to silence this warning
c = (p1.f4 && 7) > (e && f || j);
~^~~~
x.c:17:29: warning: '&&' within '||' [-Wlogical-op-parentheses]
c = (p1.f4 && 7) > (e && f || j);
~~^~~~ ~~
x.c:17:29: note: place parentheses around the '&&' expression to silence this
warning
c = (p1.f4 && 7) > (e && f || j);
^
( )
x.c:26:5: warning: expression result unused [-Wunused-value]
g.f0;
~ ^~
4 warnings generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs