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

compile warnings on raspberry pi #11

Open
devZer0 opened this issue Jan 25, 2019 · 0 comments
Open

compile warnings on raspberry pi #11

devZer0 opened this issue Jan 25, 2019 · 0 comments

Comments

@devZer0
Copy link

devZer0 commented Jan 25, 2019

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
@devZer0 devZer0 changed the title compile warning on raspberry pi compile warnings on raspberry pi Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant