While compiling with -Wparentheses this will give a warning and it is understandable
if (myVar= myFunct(param1)) {
// do some stuff
}
but when we declare variable inside if block, compiler doesn't give warning. Why?
if (int myVar= myFunct(param1)) {
// do some stuff
}
g++(GCC) 4.8.5