A feature request was submitted (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45553), which Andrew Pinkski tied to bug 11856 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856). Out of 11856 came -Wno-type-limits. Jeff On Mon, Aug 30, 2010 at 4:22 AM, Axel Freyn <axel-freyn@xxxxxx> wrote: > Hi Jeff, >> I usually compile with -Wall -Wextra -Wno-deprecated -Wno-unused. The >> options do a very good job, but I still get some noise from template >> code: >> >> template< class T > >> SomeClass<T>::SomeFunc(const T& t) >> { >> // warning: comparison of unsigned expression < 0 is always false >> if(t < 0) >> { >> ... >> } >> } >> >> Does anyone have any tricks to remove the warning for the case that >> type T is unsigned*? [SNIP]