summaryrefslogtreecommitdiffstats
path: root/src/kernel/console.C
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-08-19 12:08:01 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-08-19 12:08:01 -0500
commit6dbab3072e8f50e25137fa53c7ffce0d111c2338 (patch)
treee28281185d0c4359e435bf0fbc2c4bd41b19c6b7 /src/kernel/console.C
parentfad284f4af86149a8bc78c61bb99f1a1e30e7b68 (diff)
downloadtalos-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.C3
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)
{
OpenPOWER on IntegriCloud