why would the optimization ignore the if statement when function has warning -Wreturn-type?
why would the optimization ignore the if statement when function has warning -Wreturn-type?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!
(stackoverflow.com/users/16343042/%e9%99%88%e6%b3%bd%e9%9c%96)陈泽霖
(stackoverflow.com/users/5740428/jan-schultke)Jan Schultke
(stackoverflow.com/users/7976805/yksisarvinen)Yksisarvinen
(stackoverflow.com/users/5910058/jesper-juhl)Jesper Juhl
A special thanks goes out to the (https://stackoverflow.com/questions/77678733/why-would-the-optimization-ignore-the-if-statement-when-function-has-warning-w)Stackexchange community
I wish you all a wonderful day! Stay safe :)
c++ compiler-optimization undefined-behavior optimization assembly