If one has a itemize environment, with no items inside :
\begin{itemize}
\end{itemize}
the compilation will complain "perhaps a missing \item". I would like to modify the environment itemize (or enumerate) such that in case there is no \item
, the compilation doest NOT fail, and simply display nothing.
EDIT
I think that by trying to extract a MWE from my actual problem, i missed the point. So, i reformulated the question here.
Best Answer
You can deactivate it as follows, though I'm not really sure why anyone would want to do this!
If you need to reactivate it later, you need to save the original definition.