Three-dimensional flows of Mach number 3 around a double-compression ramp with finite span have been investigated numerically. Shadowgraph visualisation images obtained in a supersonic wind tunnel are used for comparison. A three-dimensional Reynolds-averaged Navier-Stokes solver was used to obtain steady numerical solutions. Two-dimensional numerical results are also compared. Four different cases were studied: two different second ramp angles of and in configurations with and without sidewalls, respectively. Results showed that there is a leakage of mass and momentum fluxes heading outwards in the spanwise direction for three-dimensional cases without sidewalls. The leakage changed the flow characteristics of the shock-induced boundary layer and resulted in the discrepancy between the experimental data and two-dimensional numerical results. It is found that suppressing the flow leakage by attaching the sidewalls enhances the two-dimensionality of the experimental data for the double-compression ramp flow.