Project

General

Profile

Bug #10876

ath: comparison between pointer and integer

Added by Toomas Soome 6 months ago. Updated 5 months ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Debug build errors with NULL pointer:

    In file included from ../../common/sys/model.h:35:0,
                     from ../../common/sys/stream.h:46,
                     from ../../common/io/ath/ath_main.c:117:
    ../../common/io/ath/ath_main.c: In function 'ath_rx_handler':
    ../../common/io/ath/ath_main.c:552:41: error: comparison between pointer and int
    eger [-Werror]
       ASSERT(bf->bf_dma.cookie.dmac_address != NULL);
                                             ^
    ../../common/sys/debug.h:59:29: note: in definition of macro 'ASSERT'
     #define ASSERT(EX) ((void)((EX) || assfail(#EX, __FILE__, __LINE__)))
                                 ^~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 5 months ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit c7a3e8ab2d516101489c6cb5fb2cea59a52d7bba

commit  c7a3e8ab2d516101489c6cb5fb2cea59a52d7bba
Author: Toomas Soome <tsoome@me.com>
Date:   2019-05-16T19:29:52.000Z

    10876 ath: comparison between pointer and integer
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF