mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Turn off stupid warnings when using Sun CC.
This commit is contained in:
		
							
								
								
									
										10
									
								
								GNUmakefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								GNUmakefile
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
# $Id: GNUmakefile,v 1.116 2009-09-20 22:06:34 tcunha Exp $
 | 
			
		||||
# $Id: GNUmakefile,v 1.117 2009-10-15 08:15:06 nicm Exp $
 | 
			
		||||
 | 
			
		||||
.PHONY: clean
 | 
			
		||||
 | 
			
		||||
@@ -6,11 +6,17 @@ VERSION= 1.1
 | 
			
		||||
 | 
			
		||||
FDEBUG= 1
 | 
			
		||||
 | 
			
		||||
CC?= gcc
 | 
			
		||||
CC?= cc
 | 
			
		||||
CFLAGS+= -DBUILD="\"$(VERSION)\""
 | 
			
		||||
LDFLAGS+= -L/usr/local/lib
 | 
			
		||||
LIBS+=
 | 
			
		||||
 | 
			
		||||
# Sun CC 
 | 
			
		||||
ifneq ($(shell (cc -V 2>&1|awk '/Sun C/' || true)), )
 | 
			
		||||
	CFLAGS+=-erroff=E_EMPTY_DECLARATION
 | 
			
		||||
	FDEBUG=
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
ifdef FDEBUG
 | 
			
		||||
CFLAGS+= -g -ggdb -DDEBUG
 | 
			
		||||
CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user