For a deprecated function. Put this in the Library.h file where the function is declared. The warning will only appear if the user puts that function in their code.
[[deprecated ("May be removed in future release. See README and library examples.")]]
int16_t oldFunction(int16_t);