Project

General

Profile

Actions

Bug #15491

open

libipadm: the comparison will always evaluate as 'true'

Added by Toomas Soome 12 days ago. Updated 12 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Build error with gcc 12:

    ../common/ipadm_addr.c: In function 'i_ipadm_op_dhcp':
    ../common/ipadm_addr.c:3229:70: error: the comparison will always evaluate as 'true' for the address of 'ipadm_reqhost' will never be NULL [-Werror=address]
     3229 |                 if (addr->ipadm_af == AF_INET && addr->ipadm_reqhost != NULL &&
              |                                                                          ^~
    In file included from ../common/ipadm_addr.c:62:
    ../common/libipadm_impl.h:99:49: note: 'ipadm_reqhost' declared here
       99 |                         char                    ipadm_reqhost[MAXNAMELEN];
            |                                                    ^~~~~~~~~~~~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk 12 days ago

  • Gerrit CR set to 2722
Actions #2

Updated by Toomas Soome 12 days ago

  • Description updated (diff)
Actions

Also available in: Atom PDF