From 2b32bad34fd9539213f023036d647bd199a2d68f Mon Sep 17 00:00:00 2001 From: Roger Hughston Date: Thu, 16 Feb 2006 01:20:07 +0000 Subject: [PATCH] Cleaning Up Some Warnings --- panda/src/express/config_express.cxx | 8 ++++++-- panda/src/express/datagram.cxx | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/panda/src/express/config_express.cxx b/panda/src/express/config_express.cxx index 202cddfc5f..56ce275e7a 100644 --- a/panda/src/express/config_express.cxx +++ b/panda/src/express/config_express.cxx @@ -185,14 +185,18 @@ init_libexpress() { init_system_type_handles(); - PandaSystem *ps = PandaSystem::get_global_ptr(); - #ifdef HAVE_ZLIB + { + PandaSystem *ps = PandaSystem::get_global_ptr(); ps->add_system("zlib"); + } #endif #ifdef HAVE_THREADS + { + PandaSystem *ps = PandaSystem::get_global_ptr(); ps->add_system("threads"); + } #endif } diff --git a/panda/src/express/datagram.cxx b/panda/src/express/datagram.cxx index b5fb570ba5..3cee779ca5 100644 --- a/panda/src/express/datagram.cxx +++ b/panda/src/express/datagram.cxx @@ -58,7 +58,7 @@ dump_hex(ostream &out) const { size_t num_bytes = get_length(); for (size_t line = 0; line < num_bytes; line += 16) { char hex[12]; - sprintf(hex, "%04x ", line); + sprintf(hex, "%04x ", ((unsigned int )line)); out << hex; size_t p;