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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user