baycom / tfrec

SDR tool for receiving wireless sensor data (TFA IT+ KlimaLogg Pro, LaCrosse, WeatherHub)
GNU General Public License v2.0
68 stars 19 forks source link

compile warnings on raspberry pi #11

Open devZer0 opened 5 years ago

devZer0 commented 5 years ago
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c main.cpp
main.cpp: In function ‘void read_raw_msgs(std::vector<demodulator*>*, char*)’:
main.cpp:41:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while((x=strsep(&dp, " ")) && len<sizeof(dbuf)) {
                                 ~~~^~~~~~~~
main.cpp:45:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int n=0;n<demods->size();n++) {
               ~^~~~~~~~~~~~~~~
main.cpp: In function ‘int main(int, char**)’:
main.cpp:232:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int n=0;n<demods.size();n++)
               ~^~~~~~~~~~~~~~
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c engine.cpp
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c dsp_stuff.cpp
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c fm_demod.cpp
fm_demod.cpp: In member function ‘void fsk_demod::process(int16_t*, int)’:
fm_demod.cpp:38:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int n=0;n<demods->size();n++) {
              ~^~~~~~~~~~~~~~~
fm_demod.cpp:48:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int n=0;n<demods->size();n++)
               ~^~~~~~~~~~~~~~~
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c decoder.cpp
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c crc8.cpp
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c tfa1.cpp
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c tfa2.cpp
tfa2.cpp: In member function ‘void tfa2_decoder::flush_tx22(int, int)’:
tfa2.cpp:206:10: warning: ‘crc_calc’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    printf("TX22(%02x) BAD %i RSSI %i  Offset %.0lfkHz (CRC %02x %02x) len %i\n",1<<type,bad,rssi,
    ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           -1536.0*offset/131072,
           ~~~~~~~~~~~~~~~~~~~~~~
           crc_val,crc_calc,byte_cnt);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~
tfa2.cpp:206:10: warning: ‘crc_val’ may be used uninitialized in this function [-Wmaybe-uninitialized]
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c utils.cpp
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c sdr.cpp
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c whb.cpp
whb.cpp: In member function ‘void whb_decoder::decode_0b(uint8_t*, uint64_t, int, int)’:
whb.cpp:283:27: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses]
   speed[i]= ((v>>16)&0xff + 256*((v>>25)&1))/10.0;
                      ~~~~~^~~~~~~~~~~~~~~~~
whb.cpp:284:26: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses]
   gust[i]=  ((v>>8)&0xff + 256*((v>>24)&1))/10.0;
                     ~~~~~^~~~~~~~~~~~~~~~~
g++ -O3  -mfpu=vfp -march=armv6 -mfloat-abi=hard -ftree-vectorize -ffast-math -std=c++0x -Wall -Wno-unused-function  -Wno-unused-variable -Wno-unused-but-set-variable -Wno-write-strings  -I/usr/include/  -c crc32.cpp
g++  -rdynamic -o tfrec main.o engine.o dsp_stuff.o fm_demod.o decoder.o crc8.o tfa1.o tfa2.o utils.o sdr.o whb.o crc32.o -lm -lrtlsdr -lpthread