airspy / airspyone_host

AirSpy's usemode driver and associated tools
http://airspy.com
247 stars 88 forks source link

warning: enumeration value ‘AIRSPY_SAMPLE_END’ not handled in switch [-Wswitch] #7

Closed geekskunk closed 9 years ago

geekskunk commented 9 years ago

Warning during make, not sure if significant:

[ 7%] Building C object libairspy/src/CMakeFiles/airspy.dir/airspy.c.o /home/ubuntu/airspy/libairspy/src/airspy.c: In function ‘conversion_threadproc’: /home/ubuntu/airspy/libairspy/src/airspy.c:306:3: warning: enumeration value ‘AIRSPY_SAMPLE_END’ not handled in switch [-Wswitch] switch (device->sample_type) ^ [ 14%] Building C object libairspy/src/CMakeFiles/airspy.dir/iqconverter_float.c.o [ 21%] Building C object libairspy/src/CMakeFiles/airspy.dir/iqconverter_int16.c.o Linking C shared library libairspy.so [ 21%] Built target airspy Scanning dependencies of target airspy-static [ 28%] Building C object libairspy/src/CMakeFiles/airspy-static.dir/airspy.c.o /home/ubuntu/airspy/libairspy/src/airspy.c: In function ‘conversion_threadproc’: /home/ubuntu/airspy/libairspy/src/airspy.c:306:3: warning: enumeration value ‘AIRSPY_SAMPLE_END’ not handled in switch [-Wswitch] switch (device->sample_type) ^

Starting point for this build was using the following image: http://www.kd0cq.com/2014/08/packed-full-beaglebone-black-img-file-rtl-sdr-gnuradio-gqrx-lots-more-on-ubuntu-14-04/

bvernoux commented 9 years ago

This is a "false postive" from your tool as AIRSPY_SAMPLE_END is just used to tag end of sample types and shall be not handled in switch.