Hello all,

this simple code:

#include "ttmath.h"
int main()
{
ttmath::Big<2,4> a;
ttmath::Big<2,4> *pa = new ttmath::Big<2,4>;
*pa="12.3";
std::cout << *pa << std::endl;
delete pa;

}

creates:

../srcext/ttmath/ttmath/ttmathuint.h:1324:22: warning: comparison of unsigned expression < 0 is always false
../srcext/ttmath/ttmath/ttmathuint.h:1343:24: warning: comparison of unsigned expression < 0 is always false
../srcext/ttmath/ttmath/ttmathuint.h:1364:18: warning: comparison of unsigned expression < 0 is always false

this Warnings on Ubuntu Linux with activated flags:
-W\
-Wall\
-Wno-write-strings\
-Wuninitialized \
-Wextra\
-fno-strict-aliasing\
-Wold-style-cast \
-Wsynth\
-Wsign-promo\
-Woverloaded-virtual\
-fcheck-new \
-Wmissing-braces \
-Warray-bounds\
-Wunused-function \
-Wmissing-field-initializers\
-Wredundant-decls\
-Wno-pragmas\
-fshow-column\
-Wno-unknown-pragmas\
-pedantic

Best regards

Ettl Martin

Added by: tomek, 2010 IX 06, Last modified: 2010 IX 06

My point of view is explained here