Print this page
10804 Enable unused warnings outside of uts
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Toomas Soome <tsoome@me.com>


1020 include ../../Makefile.lib.64
1021 
1022 CFLAGS64 += $(CTF_FLAGS)
1023 
1024 # This is necessary to avoid problems with calling _ex_unwind().
1025 # We probably don't want any inlining anyway.
1026 CFLAGS64 += -xinline=
1027 
1028 CERRWARN += -_gcc=-Wno-parentheses
1029 CERRWARN += -_gcc=-Wno-switch
1030 CERRWARN += -_gcc=-Wno-uninitialized
1031 CERRWARN += -_gcc=-Wno-unused-value
1032 CERRWARN += -_gcc=-Wno-unused-label
1033 CERRWARN += -_gcc=-Wno-unused-variable
1034 CERRWARN += -_gcc=-Wno-type-limits
1035 CERRWARN += -_gcc=-Wno-char-subscripts
1036 CERRWARN += -_gcc=-Wno-clobbered
1037 CERRWARN += -_gcc=-Wno-unused-function
1038 CERRWARN += -_gcc=-Wno-address
1039 


1040 # not linted
1041 SMATCH=off
1042 
1043 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1044 # enables ASSERT() checking in the threads portion of the library.
1045 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1046 THREAD_DEBUG =
1047 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1048 
1049 # Make string literals read-only to save memory
1050 CFLAGS64 += $(XSTRCONST)
1051 
1052 ALTPICS= $(TRACEOBJS:%=pics/%)
1053 
1054 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1055 
1056 MAPFILES =      $(LIBCDIR)/port/mapfile-vers
1057 
1058 CPPFLAGS=       -D_REENTRANT -D$(MACH64) -D__$(MACH64) $(THREAD_DEBUG) \
1059                 -I. -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)




1020 include ../../Makefile.lib.64
1021 
1022 CFLAGS64 += $(CTF_FLAGS)
1023 
1024 # This is necessary to avoid problems with calling _ex_unwind().
1025 # We probably don't want any inlining anyway.
1026 CFLAGS64 += -xinline=
1027 
1028 CERRWARN += -_gcc=-Wno-parentheses
1029 CERRWARN += -_gcc=-Wno-switch
1030 CERRWARN += -_gcc=-Wno-uninitialized
1031 CERRWARN += -_gcc=-Wno-unused-value
1032 CERRWARN += -_gcc=-Wno-unused-label
1033 CERRWARN += -_gcc=-Wno-unused-variable
1034 CERRWARN += -_gcc=-Wno-type-limits
1035 CERRWARN += -_gcc=-Wno-char-subscripts
1036 CERRWARN += -_gcc=-Wno-clobbered
1037 CERRWARN += -_gcc=-Wno-unused-function
1038 CERRWARN += -_gcc=-Wno-address
1039 
1040 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
1041 
1042 # not linted
1043 SMATCH=off
1044 
1045 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1046 # enables ASSERT() checking in the threads portion of the library.
1047 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1048 THREAD_DEBUG =
1049 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1050 
1051 # Make string literals read-only to save memory
1052 CFLAGS64 += $(XSTRCONST)
1053 
1054 ALTPICS= $(TRACEOBJS:%=pics/%)
1055 
1056 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1057 
1058 MAPFILES =      $(LIBCDIR)/port/mapfile-vers
1059 
1060 CPPFLAGS=       -D_REENTRANT -D$(MACH64) -D__$(MACH64) $(THREAD_DEBUG) \
1061                 -I. -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)