Red Hat Bugzilla – Bug 162370
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 librsvg2-2.9.5-2 from Redhat
Fedora Core development tree with the gcc 4.0.0 compiler and
the compiler flag -Wall.
The compiler said
rsvg-shapes.c:1845: warning: comparisons like X<=Y<=Z do not have their
The source code is
if (height * *w >
width * *h != (aspect_ratio & RSVG_ASPECT_RATIO_SLICE))
I agree with the compiler. Suggest code rework for maintainability.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
librsvg cvs has added parens there to clarify the meaning.