Project

General

Profile

Feature #6454

Globally disable E_STATIC_UNUSED lint check for usr/src/uts

Added by Yuri Pankov about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2015-11-12
Due date:
% Done:

50%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

GCC being the primary compiler does a better job at detecting this, and as there are false positives reported by lint, we should simply globally disable the check.

History

#1

Updated by Gordon Ross about 4 years ago

This is a poor solution to a problem that was introduced by #6201
A better solution to #6201 might have used "extern inline ..." in headers.
For more, on that topic, read up on (i.e.)
https://www.google.com/search?q=static+inline+vs+extern+inline

#2

Updated by Yuri Pankov about 4 years ago

Gordon Ross wrote:

This is a poor solution to a problem that was introduced by #6201

This isn't solution to anything other than disabling not really helpful checks in proprietary tool having better checks in our primary compiler. It was inspired by discussion of what we should use in sys/ctype.h, but that's all.

A better solution to #6201 might have used "extern inline ..." in headers.
For more, on that topic, read up on (i.e.)
https://www.google.com/search?q=static+inline+vs+extern+inline

Is there a specific bit of information you wanted to link to?

#3

Updated by Yuri Pankov almost 4 years ago

  • Status changed from In Progress to Closed

Not going to happen.

Also available in: Atom PDF