throw a warning instead of a compilation error

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>