It depends on whether you make compost at home or outside
Usually smelly eggs, milk and meat are not used as expected in compost. Vegetables, fruits, grains, etc. are commonly used.
Adding fallen leaves or soil (naturally containing bacteria that are good for decomposing food) in the compost can also reduce smell production greatly.