Another option would be to surround the file with
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
[...]
#pragma GCC diagnostic pop
but then I'd have to suppress "unknown pragma" warnings on MSVC.
This way is more invasive but cleaner to look at.