On Saint-Venant’s generalized principle in compressible viscous fluid dynamics