The MWE below gives a warning: "warning (pdf backend): ignoring duplicate destination with the name 'section.1'". The warning disappears when commenting out either the option "localanchorname" or \usepackage{caption}. Can this warning be eliminated (not silenced) while keeping both?
\documentclass{article}
\PassOptionsToPackage{%
localanchorname%
}{hyperref}
\usepackage{caption}
\usepackage{hyperref}
\begin{document}
\section{Heading One}
xxx
\begin{figure}
\end{figure}
\end{document}