r/ProgrammerHumor • • 7d ago

Meme technicallyItCompiles

Post image
876 Upvotes

23 comments sorted by

View all comments

62

u/JackNotOLantern 7d ago

> crash occurs
> array out of bounds
> look at the code
> on the line it happens there is a warning
> "may cause array out of bounds"

25

u/gooseears 7d ago

Let me just comment that warning out. Should be fine now.

7

u/Some_Useless_Person 6d ago

Wait what? How do you comment a warning?

7

u/5up3rj 6d ago

The IDE settings are a pathway to many abilities

5

u/JackNotOLantern 6d ago

Ide settings or something like in java "@SuppressWarning(...)"

3

u/metaglot 6d ago

Yeah. Warnings are errors waiting to happen at runtime.

2

u/TheWashbear 5d ago

pragma warning disable

See? No more warning, everything is fixed. This conversation may have been happened to me with a trainee