Project

General

Profile

Bug #10017

libilb: macro expands to multiple statements

Added by Toomas Soome 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2018-11-30
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Issue found by gcc 8 build:

    ../common/ilb_sg.c: In function 'i_ilb_fillin_srvdata':
    ../common/libilb_impl.h:79:2: error: macro expands to multiple statements [-Werror=multistatement-macros]
      bzero(_i, sizeof (*(_i)));    \
      ^~~~~
    ../common/ilb_sg.c:430:3: note: in expansion of macro 'IP_COPY_CLI_2_IMPL'
       IP_COPY_CLI_2_IMPL(&srv->sd_addr, &sgs->sgs_addr);
       ^~~~~~~~~~~~~~~~~~
    ../common/ilb_sg.c:429:2: note: some parts of macro expansion are not guarded by this 'else' clause
      else
      ^~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 8 months ago

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

git commit fa79a855d371dfcb29461ad6ebaf48a458bf9f14

commit  fa79a855d371dfcb29461ad6ebaf48a458bf9f14
Author: Toomas Soome <tsoome@me.com>
Date:   2018-12-05T01:59:03.000Z

    10017 libilb: macro expands to multiple statements
    Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF