/home/pi/bladeRF/host/libraries/libbladeRF_test/test_timestamps/src/test_txrx_hwloop.c: In function ‘main’:
/home/pi/bladeRF/host/libraries/libbladeRF_test/test_timestamps/src/test_txrx_hwloop.c:104:74: error: comparison is always
true due to limited range of data type [-Werror=type-limits]
104 | while ((c = getopt_long(argc, argv, optstr, long_options, &opt_ind)) >= 0) {
| ^~
cc1: all warnings being treated as errors
make[2]: *** [libraries/libbladeRF_test/test_timestamps/CMakeFiles/libbladeRF_test_txrx_hwloop.dir/build.make:82:
libraries/libbladeRF_test/test_timestamps/CMakeFiles/libbladeRF_test_txrx_hwloop.dir/src/test_txrx_hwloop.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1378: libraries/libbladeRF_test/test_timestamps/CMakeFiles/libbladeRF_test_txrx_hwloop.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
Are you prepared to play the game bitlife - Life Simulator and experience an interesting virtual life? Before your life is over, start your life over and make the right choices little by little, year by year, until you eventually become a model citizen.
The error you get while building the code is due to a change in the way the compiler handles warnings. Specifically, the current compiler is warning that the comparison >= 0 with variable c will always be true due to the data type of variable c. This error is raised to an error because the -Werror option is enabled, which turns all warnings into errors. slice master