Compare commits

..

No commits in common. "0926a4ccd80f26b6f036f67fc796b2f4f907cf58" and "0c89aa8bfcc5ec9ed3961b4c945877290ff13a7e" have entirely different histories.

2 changed files with 10 additions and 11 deletions

View file

@ -1,20 +1,21 @@
# SPDX-License-Identifier: MIT
CC = gcc
CFLAGS = -Wall -Wextra -Werror -Wno-unused-parameter
CFLAGS += -Wno-unused-variable -Wno-unused-function
CFLAGS += -Wno-unused-but-set-variable -Wno-unused-value -Wno-unused-label
CFLAGS += -Wno-unused-result -Wno-unused-const-variable
# CFLAGS = -Wall -Wextra -Werror -Wno-unused-parameter
# CFLAGS += -Wno-unused-variable -Wno-unused-function
# CFLAGS += -Wno-unused-but-set-variable -Wno-unused-value -Wno-unused-label
# CFLAGS += -Wno-unused-result -Wno-unused-const-variable
ifeq ($(RELEASE), 1)
CFLAGS += -fno-exceptions -fno-asynchronous-unwind-tables -fno-ident
CFLAGS += -fno-unwind-tables -fno-stack-protector -fno-plt -fno-pic
CFLAGS += -O3 -std=c99 -march=native -mtune=native -fomit-frame-pointer
endif
# ifeq ($(RELEASE), 1)
# CFLAGS += -fno-exceptions -fno-asynchronous-unwind-tables -fno-ident
# CFLAGS += -fno-unwind-tables -fno-stack-protector -fno-plt -fno-pic
# CFLAGS += -O3 -std=c99 -march=native -mtune=native -fomit-frame-pointer
# endif
# Include debug flags
CFLAGS += -g -O0 -std=c99 -march=native -mtune=native
C_SOURCES = $(wildcard *.c)
C_HEADERS = $(wildcard *.h)
OBJECTS = $(C_SOURCES:.c=.o)

View file

@ -45,7 +45,6 @@ rb_push_back(struct RingBuf *rb, const void *item, MEMCPY_T memcpy_fn)
rb->write_head = rb->buffer;
rb->count++;
return WriteOk;
}
enum ReadResult
@ -62,5 +61,4 @@ rb_pop_front(struct RingBuf *rb, void *item)
rb->read_head = rb->buffer;
rb->count--;
return ReadOk;
}