3 ms·
Compilers can still diagnose something as a warning even if it's not UB.
by mdspan 17d ago
Compilers can still diagnose something as a warning even if it's not UB.
- cppcppcpp 16d agoCan, yes. Must, no.
- tialaramex 16d agoWarnings are poisoned in C++. It is popular to tell C++ compilers to convert all their warnings into fatal errors. So your only options are "Silently allow probably bad code" and "Program does not compile" because C++ programmers are allergic to nuance.
- anticensor 15d agoOh you mean the -Wall -Werror crowd.