diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2010-08-19 12:08:01 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2010-08-19 12:08:01 -0500 |
commit | 6dbab3072e8f50e25137fa53c7ffce0d111c2338 (patch) | |
tree | e28281185d0c4359e435bf0fbc2c4bd41b19c6b7 /src/kernel/console.C | |
parent | fad284f4af86149a8bc78c61bb99f1a1e30e7b68 (diff) | |
download | talos-hostboot-6dbab3072e8f50e25137fa53c7ffce0d111c2338.tar.gz talos-hostboot-6dbab3072e8f50e25137fa53c7ffce0d111c2338.zip |
Enable -Wall and fix warnings.
Diffstat (limited to 'src/kernel/console.C')
-rw-r--r-- | src/kernel/console.C | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/console.C b/src/kernel/console.C index ec1110202..032d74213 100644 --- a/src/kernel/console.C +++ b/src/kernel/console.C @@ -19,6 +19,7 @@ int Console::putc(int c) { iv_buffer[__sync_fetch_and_add(&iv_pos, 1)] = c; } + return c; } class ConsoleTraits @@ -117,7 +118,7 @@ void printk(const char* str, ...) Console& console = Singleton<Console>::instance(); bool format = false; - int size; + int size = 0; while('\0' != *str) { |