Project

General

Profile

Actions

Bug #14339

closed

bhyve: build errors with gcc 11

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
bhyve
Start date:
Due date:
% Done:

100%

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

Description

Need to suppress gcc 11, but also:

    pci_passthru.c: In function 'passthru_init':
    pci_passthru.c:703:17: error: 'pptfd' may be used uninitialized [-Werror=maybe-uninitialized]
      703 |                 vm_unassign_pptdev(ctx, pptfd);
          |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    pci_passthru.c:661:30: note: 'pptfd' declared here
      661 |         int error, memflags, pptfd;
          |                              ^~~~~
    cc1: all warnings being treated as errors

Testing done: tested with OI running in bhyve - zpool scrub, pkg update, couple of reboots. Nothing unexpected did happen.

Actions #1

Updated by Electric Monk 8 months ago

  • Gerrit CR set to 1895
Actions #2

Updated by Toomas Soome 7 months ago

  • Description updated (diff)
Actions #3

Updated by Electric Monk 7 months ago

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

git commit a73f84128431389b9c4004ced8cbbe6945a2bd45

commit  a73f84128431389b9c4004ced8cbbe6945a2bd45
Author: Toomas Soome <tsoome@me.com>
Date:   2022-01-04T20:25:51.000Z

    14339 bhyve: build errors with gcc 11
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Andy Fiddaman <andy@omnios.org>
    Approved by: Robert Mustacchi <rm@fingolfin.org>

Actions

Also available in: Atom PDF