Private functions used by private macros no longer emit an unused warning, closes #885