diff options
| author | Andy Fiddaman <omnios@citrus-it.co.uk> | 2019-09-14 09:57:13 +0000 |
|---|---|---|
| committer | Andy Fiddaman <omnios@citrus-it.co.uk> | 2019-09-18 13:35:59 +0000 |
| commit | e6615f1000c4c6e6b8e18bdc6b077002bdd22526 (patch) | |
| tree | 7680bdd21496c1f742de0d6448f79d18e876cabe /usr/src/cmd/latencytop/Makefile.com | |
| parent | cf691b2b138fb3e0396a16406094b82ec555610e (diff) | |
| download | illumos-joyent-e6615f1000c4c6e6b8e18bdc6b077002bdd22526.tar.gz | |
11684 shadow compilers dislike glib2 2.62
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Dominik Hassler <hadfl@omniosce.org>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/cmd/latencytop/Makefile.com')
| -rw-r--r-- | usr/src/cmd/latencytop/Makefile.com | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/usr/src/cmd/latencytop/Makefile.com b/usr/src/cmd/latencytop/Makefile.com index 75f7efef16..cc547f618f 100644 --- a/usr/src/cmd/latencytop/Makefile.com +++ b/usr/src/cmd/latencytop/Makefile.com @@ -23,6 +23,7 @@ # All Rights Reserved. # # Copyright (c) 2018, Joyent, Inc. +# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. PROG = latencytop OBJS = latencytop.o display.o dwrapper.o klog.o stat.o table.o util.o @@ -35,7 +36,14 @@ CFLAGS64 += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) -SMOFF += all_func_returns +# glib2 >= 2.62 suppresses warnings about deprecated declarations in header +# files using pragma "GCC diagnostic ignored \"-Wdeprecated-declarations\"" +# This is not supported before GCC 4.6 so just globally suppress these +# warnings under the shadow compiler +CERRWARN += -_gcc4=-Wno-deprecated-declarations + +# smatch has problems parsing the glib header files +SMATCH=off CPPFLAGS += -DEMBED_CONFIGS -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \ -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include @@ -43,13 +51,6 @@ CSTD = $(CSTD_GNU99) LDLIBS += -lcurses -ldtrace all install := LDLIBS += -lglib-2.0 -LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2 -LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2 -LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2 -LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2 -LINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2 -LINTFLAGS64 += -erroff=E_FUNC_RET_MAYBE_IGNORED2 - FILEMODE = 0555 ELFWRAP = elfwrap @@ -81,8 +82,6 @@ latencytop_trans: clean: $(RM) $(CLEANFILES) -lint: lint_SRCS - %.o: ../common/%.c $(COMPILE.c) $< |
