[Tex/LaTex] Suppress Warning: “Usage of package `fancyhdr’ together(scrbook) with a KOMA-Script class is not recommended.”

koma-scriptpackagesscrbooksilence

I am using a titlepage, that causes the following error:

Usage of package `fancyhdr' together(scrbook) with a KOMA-Script class is not recommended.

It appears to work fine, and I don't use package fancyhdr anywhere outside the titlepage. So I don't really need to fix the warning, instead I would like to supress it.

The only way I know to supress warnings in LaTeX is the silence package, but as far as I can tell, I always need to specify which package causes the exception.

How do I suppress this warning?

Best Answer

Using the silence package you mention works just fine:

\documentclass{scrbook}

\usepackage{silence}
\WarningFilter{scrbook}{Usage of package `fancyhdr'}

\usepackage{fancyhdr}

\begin{document}

\end{document}