Warthogs are herbivorous, or plant eaters. They primarily eat
grasses, and are the only type of pig that is a grazer. Deer are
definitely not a food source for warthogs.
Warthogs are omnivores. They eat a variety of different grasses, roots, and bulbs, roots being their favorite. Occasionally they will eat a dead animal or bones, but most of the time they eat plants.