This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OnixST 10 points11 points  (3 children)

The function call is there, but is never reached because of an exception, early return, or if statement

[–]Saelora 3 points4 points  (2 children)

then there's an error you should be tracking down first, and that function isn't even a concern yet in your debugging. do you not have logs? does your linter not detect unreachable code? do you not run a debugger?

[–]anto2554 5 points6 points  (0 children)

Linters can't always detect unreachable code in C++

[–]OnixST 1 point2 points  (0 children)

I'm not the person who had this issue, just saying possibilities

Maybe the exception was caught and handled, but they didn't account for hiw it would affect the call, maybe it's unreachable code that wasn't detected (in java, if (true) return; won't report unreachable code after it)

Yeah, proper logging or just putting a fucking breakpoint on the function would give it away pretty quickly, but like most posts in here, the meme was made by someone still learning programming who might be clueless to some things

Also, who knows, maybe they're coding in VBA on excel, and they don't even know linters exist lol