Project

General

Profile

Bug #11346

hal: NULL pointer errors

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with NULL pointer:

    probe-storage.c: In function 'check_floppy':
    probe-storage.c:271:35: error: comparison between pointer and integer [-Werror]
       *wprot = ((chg & FDGC_CURWPROT) != NULL);
                                       ^~
    addon-cpufreq.c: In function 'edit_power_conf_file':
    addon-cpufreq.c:192:27: error: comparison between pointer and integer [-Werror]
       if (pc_edit_type.cpu_th == NULL) {
                               ^~
    ../../utils/printer.c
    ../../utils/printer.c: In function 'strip_ws':
    ../../utils/printer.c:34:15: error: comparison between pointer and integer [-Werror]
       for (; ((*s != NULL) && (isspace(*s) != 0)); s++);
                   ^~

    common.c: In function 'network_device_name_to_udi':
    common.c:51:21: error: comparison between pointer and integer [-Werror]
      for (i = 0; udi[i] != NULL; i++)
                         ^~

    ../../probing/network-printer/probe-snmp.c: In function 'hrDeviceDesc_to_info':
    ../../probing/network-printer/probe-snmp.c:42:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        *s++ = NULL;
             ^
    cc1: all warnings being treated as errors

Also available in: Atom PDF