catching assignment size mismatch errors

Hi,
How do I catch truncation errors like this:
unsigned short v1 = 0;
unsigned int v2 = 0;
v2 = 2000;
v1 = v2;

Splint does report this but how do I use splint with makefiles?

Thanks
-sudhin

-Wconversion will warn about any sort of implicit conversion that
discards precision or range.

John.

Thanks John.

><i> How do I catch truncation errors like this:
</i>><i>     unsigned short v1 = 0;
</i>><i>     unsigned int v2 = 0;
</i>><i>     v2 = 2000;
</i>><i>     v1 = v2;
</i>
-Wconversion will warn about any sort of implicit conversion that
discards precision or range.

John.