Project

General

Profile

Bug #5723

sparc build noise in mdb genunix

Added by Gordon Ross over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
2015-03-17
Due date:
% Done:

100%

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

Description

See lint noise like this:

"../../../common/modules/genunix/gcore.c", line 27: warning: empty translation unit (E_EMPTY_TRANSLATION_UNIT)
"../../../sparc/modules/genunix/gcore_isadep.c", line 19: warning: empty translation unit (E_EMPTY_TRANSLATION_UNIT)

History

#1

Updated by Gordon Ross over 5 years ago

  • Status changed from New to In Progress

Add erroff like intel uses:

diff --git a/usr/src/cmd/mdb/sparc/v9/genunix/Makefile b/usr/src/cmd/mdb/sparc/v9/genunix/Makefile
index 7eaef5c..a9a8a60 100644
--- a/usr/src/cmd/mdb/sparc/v9/genunix/Makefile
+++ b/usr/src/cmd/mdb/sparc/v9/genunix/Makefile
@@ -71,4 +71,6 @@ CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-type-limits

+LINTFLAGS64 += -erroff=E_EMPTY_TRANSLATION_UNIT
+
 MODSRCS_DIR = ../../../sparc/modules/genunix

#2

Updated by Electric Monk over 5 years ago

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

git commit 736767d9247a5e3f2b8e351f6971576b793f266a

commit  736767d9247a5e3f2b8e351f6971576b793f266a
Author: Gordon Ross <gwr@nexenta.com>
Date:   2015-03-18T02:44:13.000Z

    5723 sparc build noise in mdb genunix
    Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF