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;