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.
This commit is contained in:
Éder F. Zulian
2016-02-10 15:21:58 -02:00
parent 1dc4fff3ca
commit 0052e7e9c9

View File

@@ -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);
}