3 ms·
> In C any line of code, if care is not taken to use the correct compiler flags, can be a possible source of UB. What do you mean?
by umanwizard 8y ago
> In C any line of code, if care is not taken to use the correct compiler flags, can be a possible source of UB.
What do you mean?
- pjmlp 8y agoYou need to turn on all warnings as errors, static analysers and pedantic modes depending how each compiler allows them. ANSI C11 has 200 documented cases of UB, and each compiler might have additional cases, are you sure you can know all of them by heart while looking at a random line of C code?