Red Hat Bugzilla – Bug 162136
comparisons like X<=Y<=Z do not have their mathematical meaning
Last modified: 2007-11-30 17:11:09 EST
Description of problem:
I just tried to compile package evolution-2.2.2-5 from Redhat
Fedora Core development tree with the gcc 4.0.0 compiler and
the compiler flag -Wall.
The compiler said
e-plugin.c:93: warning: comparisons like X<=Y<=Z do not have their mathematical
The source code is
if ((state == 0) == ep_check_enabled(id) == 0)
This is really bizarre code. Suggest code rework for maintainability.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Thanks for this report. I agree that this code looks suspect. I'll try to get
this fixed upstream.
Bug still present in latest version in CVS, and in latest rawhide package.
Created attachment 117882 [details]
Patch sent upstream
I fixed this in upstream CVS on August 22; this fix is in 2.3.8 and later