Fix some clang compiler warnings

pull/132/head
Jens Steube 8 years ago
parent 76612ac031
commit f3b85a6363

@ -12600,7 +12600,7 @@ int main (int argc, char **argv)
for (uint i = 0; i < 32; i++)
{
const uint opti_bit = 1 << i;
const uint opti_bit = 1u << i;
if (opti_type & opti_bit) log_info ("* %s", stroptitype (opti_bit));
}

@ -4,8 +4,6 @@
*/
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#pragma GCC diagnostic ignored "-Wunused-function"
#include <rp_kernel_on_cpu.h>

@ -2883,7 +2883,7 @@ uint32_t *hm_get_list_valid_adl_adapters (int iNumberAdapters, int *num_adl_adap
{
AdapterInfo info = lpAdapterInfo[i];
if ((info.strUDID == NULL) || (strlen (info.strUDID) < 1)) continue;
if (strlen (info.strUDID) < 1) continue;
#ifdef WIN
if (info.iVendorID != 1002) continue;

Loading…
Cancel
Save