I get the following error (16 times; 2 for each datatype) from Bad.xs when building PDL with clang on my Mac:
> Bad.xs:9487:19: warning: comparison of constant -1 with expression of type > 'pdl_datatypes' is always true > [-Wtautological-constant-out-of-range-compare] > if ( val.type != -1 ) { ANYVAL_TO_CTYPE(PDL->bvals.Byte, PDL_Byte, val); } > ~~~~~~~~ ^ ~~ > val.type is of type pdl_datatypes, which is an enum, so valid values are >=0. In Bad.c it is assigned -1 if (!SvOK(ST(0))) — some error condition that is probably unlikely to be reached. So I think I understand what's trying to be done there, but is there a better way to do it? It is just a warning, but it looks bad. <rimshot> Derek ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel