warnings.h warning caused compile erorr - deprecated warning