Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes to Lime implementation #5

Open
wants to merge 1 commit into
base: lc/main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ endif(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clan
ADD_C_COMPILER_FLAG_IF_AVAILABLE("-Werror=incompatible-pointer-types" HAVE_ERROR_INCOMPATIBLE)

if(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_C_COMPILER_ID MATCHES "Clang")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-comment -Wno-write-strings -Wno-unused-result -Wformat -Wmissing-field-initializers -Wtype-limits -std=c99 -fno-strict-aliasing -D_GNU_SOURCE")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-comment -Wno-write-strings -Wno-unused-result -Wformat -Wmissing-field-initializers -Wtype-limits -Wno-stringop-overflow -Wno-stringop-overread -std=c99 -fno-strict-aliasing -D_GNU_SOURCE")

ADD_C_COMPILER_FLAG_IF_AVAILABLE("-Wno-unused-but-set-variable" HAVE_WNO_UNUSED_BUT_SET_VARIABLE)
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
Expand Down
2 changes: 1 addition & 1 deletion lib/src/phy/rf/rf_lime_imp.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ typedef struct {
pthread_t async_thread;
} rf_lime_handler_t;

cf_t zero_mem[64 * 1024];
static cf_t zero_mem[64 * 1024];

#if HAVE_ASYNC_THREAD
static void log_overflow(rf_lime_handler_t* h)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/phy/rf/rf_lime_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ SRSRAN_API int
rf_lime_recv_with_time(void* h, void* data, uint32_t nsamples, bool blocking, time_t* secs, double* frac_secs);

SRSRAN_API int
rf_lime_recv_with_time_multi(void* h, void** data, uint32_t nsamples, bool blocking, time_t* secs, double* frac_secs);
rf_lime_recv_with_time_multi(void* h, void* data[4], uint32_t nsamples, bool blocking, time_t* secs, double* frac_secs);

SRSRAN_API double rf_lime_set_tx_srate(void* h, double freq);

Expand Down
Loading