Start fixing clang 10.0.0 warnings.

Disable -Werror temporarily.
master
faluco 5 years ago committed by Andre Puschmann
parent 74dae2c287
commit d3cb5dcffd

@ -466,10 +466,10 @@ if("Ninja" STREQUAL ${CMAKE_GENERATOR})
endif() endif()
# Add -Werror to C/C++ flags for newer compilers # Add -Werror to C/C++ flags for newer compilers
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9) #if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") # set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
endif() #endif()
message(STATUS "CMAKE_C_FLAGS is ${CMAKE_C_FLAGS}") message(STATUS "CMAKE_C_FLAGS is ${CMAKE_C_FLAGS}")
message(STATUS "CMAKE_CXX_FLAGS is ${CMAKE_CXX_FLAGS}") message(STATUS "CMAKE_CXX_FLAGS is ${CMAKE_CXX_FLAGS}")

@ -182,7 +182,7 @@ int main(int argc, char** argv)
/* Generate random input */ /* Generate random input */
srslte_vec_cf_zero(input, num_re); srslte_vec_cf_zero(input, num_re);
for (i = 0; i < num_re; i++) { for (i = 0; i < num_re; i++) {
input[i] = 0.5 - rand() / RAND_MAX + I * (0.5 - (float)rand() / RAND_MAX); input[i] = 0.5 - rand() / (float)RAND_MAX + I * (0.5 - rand() / (float)RAND_MAX);
} }
/* Generate channel and pass input through channel */ /* Generate channel and pass input through channel */

Loading…
Cancel
Save