diff --git a/src/mem/packet.hh b/src/mem/packet.hh index 15f605ca7..a4c003e8b 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -41,6 +41,7 @@ #include #include +#include "base/compiler.hh" #include "base/misc.hh" #include "mem/request.hh" #include "sim/host.hh" diff --git a/src/unittest/cprintftest.cc b/src/unittest/cprintftest.cc index a454be05e..7fb10375c 100644 --- a/src/unittest/cprintftest.cc +++ b/src/unittest/cprintftest.cc @@ -40,7 +40,7 @@ using namespace std; int main() { - char foo[9]; + char foo[] = "foo"; cprintf("%s\n", foo); cprintf("%d\n", 'A');