Anyone know how to make the compiler spit out a warning?

You could make an overloaded function for the library call with just the warning return in it