From: <sil...@li...> - 2005-10-10 20:27:50
|
casts and remove unused variables for pangographite to compile with -Wall also #define kPosInfFloat instead of making it a static variable --This line, and those below, will be ignored-- M include/GrConstants.h M wrappers/pangographite/stressengine.cpp M wrappers/pangographite/PangoTextSrc.cpp M wrappers/pangographite/configure.ac M wrappers/pangographite/PangoGrFont.cpp M wrappers/pangographite/pangographite.cpp M wrappers/pangographite/silgraphite-break.c The diff for GrConstants (which ought to be reviewed as I don't know if having it as a static is better or worse, but it makes it an unused variable in client apps. Index: include/GrConstants.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- include/GrConstants.h (revision 80) +++ include/GrConstants.h (working copy) @@ -60,8 +60,8 @@ }; -static float kPosInfFloat =3D (float)kPosInfinity; -static float kNegInfFloat =3D (float)kNegInfinity; +#define kPosInfFloat (float)kPosInfinity +#define kNegInfFloat (float)kNegInfinity enum { |