When you saying the heating is "from compression" do you mean (1) there's a process in which compression occurs, and that's where the heating is, or (2) the heating is that which necessarily occurs when a gas is compressed from pressure P1 to a higher pressure P2?
Because (2) is wrong. Compression occurs at a shock, as does heating, but that doesn't mean the heating is due (entirely) to compression.
Because (2) is wrong. Compression occurs at a shock, as does heating, but that doesn't mean the heating is due (entirely) to compression.