"Unused global option" warning occurs
Brief outline of the bug
If the class file loads expl3.sty before \ProcessOptions,
specifying dvipdfmx as a global option will give the following warning:
LaTeX Warning: Unused global option(s):
[dvipdfmx].
But dvipdfmx option was used by expl3.sty (l3backend-dvipdfmx.def was loaded).
Minimal example showing the bug
\RequirePackage{latexbug}
\begin{filecontents}[overwrite]{some-expl-class.cls}
\RequirePackage{expl3}
\ProcessOptions
\def\normalsize{}
\end{filecontents}
\documentclass[dvipdfmx]{some-expl-class}
\begin{document}
\end{document}
Log file (required) and possibly PDF file
it is not specific to expl3. Every global option that is "used" before \ProcessOptions is readded to the unused option list there.
This issue has been automatically marked as stale because it has not had recent activity.
This has been the behavior since beginning of LaTeX2e, which means it is not a good idea to alter it now for compatibility reasons (people may have worked around it). But we should make sure that the new key/val mechanism does better. @josephwright could you take a look at that and if it does, close this one as resolved?
This issue has been automatically marked as stale because it has not had recent activity.