From 38db47005c9126949593a307e18641b2fc4d9e85 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 6 Feb 2007 22:31:15 -0800 Subject: Include compiler.hh since we use some of the #defines --HG-- extra : convert_revision : 1040addcf3f52d8d9fed2930890dadf524205af9 --- src/mem/packet.hh | 1 + 1 file changed, 1 insertion(+) 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" -- cgit v1.2.3 From a19e9ea5fca3567bdf9d780b4e7669507daba88b Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 6 Feb 2007 22:32:37 -0800 Subject: Initialize the variable to something. --HG-- extra : convert_revision : bfe1e70130719ff239987d725b089c6d7152c541 --- src/unittest/cprintftest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- cgit v1.2.3