mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Moved -Werror flag to CI only
The most useful part of -Werror is preventing code from being merged that has warnings. However it is annoying for users who may have different compilers with different warnings. Limiting -Werror to CI only covers the main concern about warnings without limiting users.
This commit is contained in:
		
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
								
							| @@ -14,15 +14,15 @@ TEST := $(patsubst tests/%.sh,%,$(wildcard tests/test_*)) | ||||
| SHELL = /bin/bash -o pipefail | ||||
|  | ||||
| ifdef DEBUG | ||||
| CFLAGS += -O0 -g3 | ||||
| override CFLAGS += -O0 -g3 | ||||
| else | ||||
| CFLAGS += -Os | ||||
| override CFLAGS += -Os | ||||
| endif | ||||
| ifdef WORD | ||||
| CFLAGS += -m$(WORD) | ||||
| override CFLAGS += -m$(WORD) | ||||
| endif | ||||
| CFLAGS += -I. | ||||
| CFLAGS += -std=c99 -Wall -pedantic | ||||
| override CFLAGS += -I. | ||||
| override CFLAGS += -std=c99 -Wall -pedantic | ||||
|  | ||||
|  | ||||
| all: $(TARGET) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user