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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/amd64/Makefile
          +++ new/usr/src/lib/libc/amd64/Makefile
↓ open down ↓ 1029 lines elided ↑ open up ↑
1030 1030  CERRWARN += -_gcc=-Wno-uninitialized
1031 1031  CERRWARN += -_gcc=-Wno-unused-value
1032 1032  CERRWARN += -_gcc=-Wno-unused-label
1033 1033  CERRWARN += -_gcc=-Wno-unused-variable
1034 1034  CERRWARN += -_gcc=-Wno-type-limits
1035 1035  CERRWARN += -_gcc=-Wno-char-subscripts
1036 1036  CERRWARN += -_gcc=-Wno-clobbered
1037 1037  CERRWARN += -_gcc=-Wno-unused-function
1038 1038  CERRWARN += -_gcc=-Wno-address
1039 1039  
     1040 +$(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
     1041 +
1040 1042  # not linted
1041 1043  SMATCH=off
1042 1044  
1043 1045  # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1044 1046  # enables ASSERT() checking in the threads portion of the library.
1045 1047  # This is automatically enabled for DEBUG builds, not for non-debug builds.
1046 1048  THREAD_DEBUG =
1047 1049  $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1048 1050  
1049 1051  # Make string literals read-only to save memory
↓ open down ↓ 193 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX