Implement @warn overloading via custom function