2 ms·
Compilers can still diagnose something as a warning even if it's not UB.
by mdspan 2mo ago
Compilers can still diagnose something as a warning even if it's not UB.
- cppcppcpp 2mo agoCan, yes. Must, no.
- tialaramex 2mo 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 2mo agoOh you mean the -Wall -Werror crowd.