Project

General

Profile

Bug #5456

Unknown attribute __unused__

Added by Gary Mills almost 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
lib - userland libraries
Start date:
2014-12-21
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

A build with the Studio 12.2 produces this error:


"../../../common/bzip2/compress.c", line 244: attribute "__unused__" is unknown, ignored (E_ATTRIBUTE_UNKNOWN)
cc: acomp failed for ../../../common/bzip2/compress.c
...
dmake: Warning: Command failed for target `obj64/bz2compress.o'

The solution is to patch bzlib_private.h, in usr/src/common/bzip2, to define unused to null for a non-gcc compiler. I'm attaching the patch file.


Files

bzlib.diff (229 Bytes) bzlib.diff Gary Mills, 2014-12-21 01:55 AM

Also available in: Atom PDF