[PATCH] clear warnings about compare signed-unsigned values

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

P j-pi at seznam.cz
Sun Oct 4 13:08:00 UTC 2015


This just removes few annoying warnings.

About the conversion of string to signed int.

-          dev_index = boost::lexical_cast< unsigned int >( hackrf_serial );
+          dev_index = boost::lexical_cast< int >( hackrf_serial );


hackrf_device_list_open checks if value of dev_index is out
 of range (eg negative) and returns proper error. In future negative value
can be used for something so this check is not necessary nor wanted.

P
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-clear-warnings-about-compare-signed-unsigned-values.patch
Type: text/x-patch
Size: 2080 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20151004/319dfdd6/attachment.bin>


More information about the osmocom-sdr mailing list