From e0bd7f156d5b188d3953f8d589baf746eb73f502 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 23 Jul 2019 11:09:23 +0200 Subject: [PATCH] replace remaining warning macros with pragma message --- lib/examples/pdsch_enodeb.c | 2 +- lib/examples/pdsch_ue.c | 2 +- lib/include/srslte/phy/fec/turbodecoder_iter.h | 4 ++-- lib/src/phy/fec/rm_turbo.c | 2 +- lib/src/phy/utils/vector_simd.c | 2 +- srsenb/src/phy/sf_worker.cc | 2 +- srsue/src/phy/sf_worker.cc | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/examples/pdsch_enodeb.c b/lib/examples/pdsch_enodeb.c index 8de64511f..6bb65c52f 100644 --- a/lib/examples/pdsch_enodeb.c +++ b/lib/examples/pdsch_enodeb.c @@ -41,7 +41,7 @@ #include "srslte/phy/common/phy_common.h" srslte_rf_t rf; #else -#warning Compiling pdsch_ue with no RF support +#pragma message "Compiling pdsch_ue with no RF support" #endif char *output_file_name = NULL; diff --git a/lib/examples/pdsch_ue.c b/lib/examples/pdsch_ue.c index 80be1a09d..a9800d3c0 100644 --- a/lib/examples/pdsch_ue.c +++ b/lib/examples/pdsch_ue.c @@ -51,7 +51,7 @@ cell_search_cfg_t cell_detect_config = {.max_frames_pbch = SRSLTE_DEFAULT_M .force_tdd = false}; #else -#warning Compiling pdsch_ue with no RF support +#pragma message "Compiling pdsch_ue with no RF support" #endif //#define STDOUT_COMPACT diff --git a/lib/include/srslte/phy/fec/turbodecoder_iter.h b/lib/include/srslte/phy/fec/turbodecoder_iter.h index 24ca2d4d6..4b0748abd 100644 --- a/lib/include/srslte/phy/fec/turbodecoder_iter.h +++ b/lib/include/srslte/phy/fec/turbodecoder_iter.h @@ -43,8 +43,8 @@ #define input_is_interleaved (h->current_dec > 0) #define type_name _16bit #else - #warning "Unsupported LLR mode" - #endif +#pragma message "Unsupported LLR mode" +#endif #endif #define debug_enabled_iter 0 diff --git a/lib/src/phy/fec/rm_turbo.c b/lib/src/phy/fec/rm_turbo.c index 21194c23f..da5e91500 100644 --- a/lib/src/phy/fec/rm_turbo.c +++ b/lib/src/phy/fec/rm_turbo.c @@ -33,7 +33,7 @@ #include "srslte/phy/utils/vector.h" #ifdef DEBUG_MODE -#warning FIXME: Disabling SSE/AVX turbo rate matching +#pragma message "FIXME: Disabling SSE/AVX turbo rate matching" #undef LV_HAVE_SSE #undef LV_HAVE_AVX #endif diff --git a/lib/src/phy/utils/vector_simd.c b/lib/src/phy/utils/vector_simd.c index 1cdb8785b..ba67a73a7 100644 --- a/lib/src/phy/utils/vector_simd.c +++ b/lib/src/phy/utils/vector_simd.c @@ -485,7 +485,7 @@ void srslte_vec_convert_fb_simd(const float *x, int8_t *z, const float scale, co #endif #ifdef HAVE_NEON -#warning srslte_vec_convert_fb_simd not implemented in neon +#pragma message "srslte_vec_convert_fb_simd not implemented in neon" #endif /* HAVE_NEON */ for(; i < len; i++){ diff --git a/srsenb/src/phy/sf_worker.cc b/srsenb/src/phy/sf_worker.cc index 5af9add6f..cd8a4b103 100644 --- a/srsenb/src/phy/sf_worker.cc +++ b/srsenb/src/phy/sf_worker.cc @@ -58,7 +58,7 @@ pthread_t plot_thread; sem_t plot_sem; static int plot_worker_id = -1; #else -#warning Compiling without srsGUI support +#pragma message "Compiling without srsGUI support" #endif /*********************************************/ diff --git a/srsue/src/phy/sf_worker.cc b/srsue/src/phy/sf_worker.cc index 80b437297..156cd2230 100644 --- a/srsue/src/phy/sf_worker.cc +++ b/srsue/src/phy/sf_worker.cc @@ -48,7 +48,7 @@ pthread_t plot_thread; sem_t plot_sem; static int plot_worker_id = -1; #else -#warning Compiling without srsGUI support +#pragma message "Compiling without srsGUI support" #endif /*********************************************/