Project

General

Profile

Actions

Bug #12150

closed

loader: warning: 'alloc_align' attribute ignored on a function returning 'int'

Added by Toomas Soome over 2 years ago. Updated over 2 years ago.

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

100%

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

Description

Build error with gcc 9:

    In file included from /code/illumos-gate/usr/src/contrib/zlib/zutil.h:27,
                     from /code/illumos-gate/usr/src/contrib/zlib/adler32.c:6:
    ../../../../include/stdlib.h:176:6: warning: 'alloc_align' attribute ignored on a function returning 'int' [-Wattributes]
      176 |      __alloc_size(3);   /* (ADV) */
          |      ^~~~~~~~~~~~
    ../../../../include/stdlib.h:176:6: warning: 'alloc_size' attribute ignored on a function returning 'int' [-Wattributes]
 

Remove unneeded attributes.

FreeBSD patches:
https://svnweb.freebsd.org/base?view=revision&revision=r302358
https://svnweb.freebsd.org/base?view=revision&revision=r311012

Actions #1

Updated by Electric Monk over 2 years ago

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

git commit 0639c0edfe5fac11628e478be2a3b2d88556fc80

commit  0639c0edfe5fac11628e478be2a3b2d88556fc80
Author: Toomas Soome <tsoome@me.com>
Date:   2020-01-09T07:24:53.000Z

    12150 loader: warning: 'alloc_align' attribute ignored on a function returning 'int'
    Reviewed by: Robert Mustacchi <rm@fingolfin.org>
    Reviewed by: Matthias Scheler <mscheler@tintri.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF