CMU-SAFARI/MQSim

Compilation failed in Linux (gcc-5)

Closed this issue · 1 comments

HostInterface_Type is ambitiously defined. The commit fb08965 still works with gcc-5 and Visual Studio may pass this failure.

src/exec/Device_Parameter_Set.h:22:28: error: declaration of ‘HostInterface_Type Device_Parameter_Set::HostInterface_Type’ [-fpermissive]
  static HostInterface_Type HostInterface_Type;
                            ^
In file included from src/exec/Device_Parameter_Set.h:5:0,
                 from src/exec/Execution_Parameter_Set.h:6,
                 from src/main.cpp:7:
src/exec/../ssd/Host_Interface_Defs.h:7:12: error: changes meaning of ‘HostInterface_Type’ from ‘enum class HostInterface_Type’ [-fpermissive]
 enum class HostInterface_Type { SATA, NVME };

Latest commit resolved !