Project

General

Profile

Actions

Bug #10761

closed

dls: NULL pointer errors

Added by Toomas Soome about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-04-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

NULL pointer errors:

    ../../common/io/dls/dls_mgmt.c: In function 'dls_devnet_prop_task':
    ../../common/io/dls/dls_mgmt.c:632:22: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      ddp->dd_prop_taskid = NULL;
                          ^
    ../../common/io/dls/dls_mgmt.c: In function 'dls_devnet_prop_task_wait':
    ../../common/io/dls/dls_mgmt.c:644:29: error: comparison between pointer and integer [-Werror]
      while (ddp->dd_prop_taskid != NULL)
                                 ^~
    ../../common/io/dls/dls_mgmt.c: In function 'dls_devnet_set':
    ../../common/io/dls/dls_mgmt.c:860:52: error: comparison between pointer and integer [-Werror]
       if (!ddp->dd_prop_loaded && (ddp->dd_prop_taskid == NULL)) {
                                                        ^~
    ../../common/io/dls/dls_mgmt.c: In function 'dls_devnet_unset':
    ../../common/io/dls/dls_mgmt.c:923:48: error: comparison between pointer and integer [-Werror]
          (ddp->dd_tref != 0 || ddp->dd_prop_taskid != NULL))) {
                                                    ^~
    ../../common/io/dls/dls_mgmt.c:954:54: error: comparison between pointer and integer [-Werror]
       while ((ddp->dd_tref != 0) || (ddp->dd_prop_taskid != NULL))
                                                          ^~
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF