Project

General

Profile

Actions

Feature #6454

closed

Globally disable E_STATIC_UNUSED lint check for usr/src/uts

Added by Yuri Pankov almost 6 years ago. Updated over 5 years ago.

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

50%

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

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.

Actions #1

Updated by Gordon Ross almost 6 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

Actions #2

Updated by Yuri Pankov almost 6 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?

Actions #3

Updated by Yuri Pankov over 5 years ago

  • Status changed from In Progress to Closed

Not going to happen.

Actions

Also available in: Atom PDF