Add -Wno-unused-function

Not all the inline function declared in the headers is used in every
source file, leading to (harmless?) unused functions errors.