Not feeding my son every time he asks?

I don't know if this belongs here or not.
My son will ask for food and I'll make a meal and he won't eat it. Today he did this at breakfast and lunch. Is it wrong of me to not allow him to have a snack? I told him I'm done wasting food and if he's hungry he should eat his meals. Right now he's complaining about how hungry he is and I told him maybe he should have eaten breakfast and lunch today. I'm not letting him have any snacks and told him to wait for dinner tonight.
My question is do you think this is proper punishment or should I allow him to snack even though he doesn't eat his meals. Mind you they are meals he asks for specifically. He's a toddler who's very stubborn and doesn't like to take direction.