From 0052e7e9c9506e7463e6f2d26e152c6c7f9128da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Wed, 10 Feb 2016 15:21:58 -0200 Subject: [PATCH] Getting rid of some warnings. In order to avoid the gcc warning" 'will be initialized after' we need to make sure the members appear in the initializer list in the same order as they appear in the class. --- DRAMSys/simulator/src/controller/ControllerState.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DRAMSys/simulator/src/controller/ControllerState.h b/DRAMSys/simulator/src/controller/ControllerState.h index bcbaa9fa..38f1941b 100644 --- a/DRAMSys/simulator/src/controller/ControllerState.h +++ b/DRAMSys/simulator/src/controller/ControllerState.h @@ -48,7 +48,7 @@ class ControllerState { public: - ControllerState(std::string ownerName, Configuration* config) : bus(config->memSpec.clk), config(config), ownerName(ownerName) + ControllerState(std::string ownerName, Configuration *config) : bus(config->memSpec.clk), ownerName(ownerName), config(config) { rowBufferStates = new RowBufferState(ownerName); }