[Tex/LaTex] Unused global options warning

warnings

I get a warning:

Unused global option(s):
[11pt,a4paper]

The code that I've been using:

\documentclass[11pt,a4paper,polish,thesis]{dcsbook}    
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{indentfirst}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{3}

I've checked forums and seems like 11pt and a4paper are both valid options.
How do I fix it?

@Edit The next message is

(thesis-template-latex.aux) (C:\...\Miktex 2.9\tex\latex\lm\t1lmr.fd")

Content of thesis-template-latex.aux:

\relax 
\catcode `"\active 
\select@language{polish}
\@writefile{toc}{\select@language{polish}}
\@writefile{lof}{\select@language{polish}}
\@writefile{lot}{\select@language{polish}}
\@writefile{toc}{\contentsline {chapter}{\numberline {1}Wst\IeC {\k e}p}{3}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@writefile{toc}{\contentsline {section}{\numberline {1.1}Cel i zakres pracy}{3}}
\citation{ruby1}
\citation{rails1}
\@writefile{toc}{\contentsline {chapter}{\numberline {2}U\IeC {\.z}yte narz\IeC {\k e}dzia}{5}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@writefile{toc}{\contentsline {section}{\numberline {2.1}Ruby}{5}}
\@writefile{toc}{\contentsline {section}{\numberline {2.2}Ruby on Rails}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.1}Model-View-Controller}{6}}
\@writefile{lof}{\contentsline {figure}{\numberline {2.1}{\ignorespaces Schematyczna reprezentacja wzorca model-view-controller.\relax }}{7}}
\@writefile{toc}{\contentsline {section}{\numberline {2.3}Bootstrap}{7}}
\citation{test1}
\citation{ruby3}
\citation{rails4}
\@writefile{toc}{\contentsline {chapter}{\numberline {3}Test Driven Development}{9}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@writefile{toc}{\contentsline {chapter}{\numberline {4}Deployment aplikacji}{13}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@writefile{toc}{\contentsline {chapter}{\numberline {5}Opis relacji w bazie danych}{15}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@writefile{lof}{\contentsline {figure}{\numberline {5.1}{\ignorespaces Schemat relacji w bazie danych\relax }}{16}}
\bibcite{ruby1}{1}
\bibcite{ruby2}{2}
\bibcite{ruby3}{3}
\bibcite{rails1}{4}
\bibcite{rails2}{5}
\bibcite{rails3}{6}
\bibcite{rails4}{7}
\bibcite{test1}{8}
\bibcite{automa1}{9}
\bibcite{automa2}{10}
\bibcite{automa3}{11}
\@writefile{toc}{\contentsline {chapter}{Bibliografia}{17}}
\ttl@finishall

Best Answer

You don't say but I assume the class is

http://www.cs.put.poznan.pl/csobaniec/software/latex/dcsgroup-classes.html

this has two \ProcessOptions commands which is an error and the cause of the spurious message.

To remove them would take some re-arranging of the class code to make sure that you have no \RequirePackage lines between \DeclareOption and \ProcessOptions.

On the other hand as far as I can see it is working as intended except for the second \ProcessOptions confusing LaTeX internals about which options have been handled so just ignoring the error is safe enough, although you should report to the class author.