Commit 21857f60 authored by Andreas Schmidt's avatar Andreas Schmidt

Fix Python warnings.

parent abd17460
Pipeline #1744 passed with stages
in 1 minute and 36 seconds
......@@ -273,7 +273,6 @@ bool PrrtSocket_closing(PrrtSocket *s) {
}
int32_t PrrtSocket_receive_asap(PrrtSocket *s, void *buf_ptr) {
prrtPacketLength_t len = 0;
check(s->isSender == false, "Cannot receive on sender socket.")
PrrtPacket *packet;
......@@ -319,8 +318,6 @@ int32_t PrrtSocket_recv(PrrtSocket *s, void *buf_ptr) {
}
int32_t PrrtSocket_receive_ordered(PrrtSocket *s, void *buf_ptr, prrtTimedelta_t time_window_us) {
prrtPacketLength_t len = 0;
check(s->isSender == false, "Cannot receive on sender socket.")
prrtTimestamp_t now = PrrtClock_get_current_time_us();
......
......@@ -3,7 +3,7 @@
#include <stdio.h>
#include <assert.h>
MPSCQueue* MPSCQueue_create()
MPSCQueue* MPSCQueue_create(void)
{
MPSCQueue* self = calloc(1, sizeof(MPSCQueue));
mpscq_node_t* stub = calloc(1, sizeof(mpscq_node_t));
......
......@@ -22,7 +22,7 @@ typedef struct mpscq_t
volatile int size;
} MPSCQueue;
MPSCQueue* MPSCQueue_create();
MPSCQueue* MPSCQueue_create(void);
void MPSCQueue_push(MPSCQueue *self, void *value);
void* MPSCQueue_pop(MPSCQueue* self);
void MPSCQueue_destroy(MPSCQueue *self);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment