I am updating my gcc from 4 to 10 to compile a code written with Qt and I get the following error:
nonnull argument 'context' comapred to NULL [-Werror=nonnull-comapre]
The code is as follows:
bool report(const Context &context) {
Q_ASSERT(&context)
...
}
This question is similar to the nonnull-compare warning for pointer to reference but the writer did not say why the compiler says this error.