I also saw this and was at a loss. I'm guessing for those with eating disorders/people who have food as some sort of trigger. I understand we should respect others, but a warning about food seems... excessive.
I've started seeing things like this recently too. For example I was browsing through a gallery of artwork by an artist and one was blurred because it contained "sensitive material". The warning stated "food" and when I clicked to reveal the image I found that it was simply a photograph of some freshly baked bread.
Interesting! I actually assumed it was simply a self-ironic joke by the author about his metaphor choice.
I indeed laughed about this 'joke', but it might not even have been one in the end.
Unrelated but I was just wondering
“Content warning I make a food-related metaphor later in this tutorial.”
Why did the author have to include a content warning for food?