From 6701947684f2b0cf59489ab3cf5faeeff609c8e5 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Wed, 9 Nov 2016 12:22:05 -0800 Subject: [PATCH] fix compile issues --- examples/SharedMemory/PhysicsClientUDP.cpp | 8 ++++++++ examples/pybullet/pybullet.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/SharedMemory/PhysicsClientUDP.cpp b/examples/SharedMemory/PhysicsClientUDP.cpp index 84749e801..0d76f8310 100644 --- a/examples/SharedMemory/PhysicsClientUDP.cpp +++ b/examples/SharedMemory/PhysicsClientUDP.cpp @@ -187,6 +187,10 @@ struct UdpNetworkedInternalData printf("%s disconected.\n", m_event.peer->data); break; + default: + { + printf("unknown event type: %d.\n", m_event.type); + } } } else if (serviceResult > 0) @@ -258,6 +262,10 @@ struct UdpNetworkedInternalData break; } + default: + { + printf("unknown event type: %d.\n", m_event.type); + } } } else if (serviceResult > 0) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index af8eacdf7..fd5355abe 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -1482,7 +1482,7 @@ static PyObject* pybullet_resetVisualShapeData(PyObject* self, PyObject* args) static PyObject* pybullet_loadTexture(PyObject* self, PyObject* args) { int size = PySequence_Size(args); - const char* filename = -1; + const char* filename = 0; b3SharedMemoryCommandHandle commandHandle; b3SharedMemoryStatusHandle statusHandle; int statusType;