Skip to content

Commit

Permalink
Suppressed Guava nullability warnings, moved framework warnings test …
Browse files Browse the repository at this point in the history
…to separate make target.
  • Loading branch information
tomball committed Jan 21, 2016
1 parent 0c2d9be commit 6d05402
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion guava/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ SOURCEPATH = $(SRC_DIR)
INCLUDE_DIRS = $(GEN_OBJC_DIR)

J2OBJCC := $(ARCH_BIN_DIR)/j2objcc -c -fobjc-abi-version=2 -fobjc-legacy-dispatch \
$(INCLUDE_DIRS:%=-I%)
$(INCLUDE_DIRS:%=-I%) -Wno-nullability -Wno-nonnull

CREATE_JAR_NAME = j2objc_guava
CREATE_JAR_SOURCES = $(JAVA_SOURCES)
Expand Down
2 changes: 2 additions & 0 deletions make/static_framework.mk
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ $(FRAMEWORK_HEADER):
@echo "//\n// $(STATIC_FRAMEWORK_NAME).h\n//\n" > $@
@for f in $(STATIC_FRAMEWORK_PUBLIC_HEADERS:$(STATIC_HEADERS_DIR)/%=%); do\
echo '#include <'$${f}'>'; done >> $@

test_warnings: $(FRAMEWORK_HEADER)
@clang -c -o $(FRAMEWORK_HEADER:%.h=%.o) $(VERIFY_FLAGS) -x objective-c -std=c11 $@
@clang -c -o $(FRAMEWORK_HEADER:%.h=%.o) $(VERIFY_FLAGS) -x objective-c -std=c11 -fobjc-arc $@
@clang -c -o $(FRAMEWORK_HEADER:%.h=%.o) $(VERIFY_FLAGS) -x objective-c -std=c11 -fno-objc-arc $@
Expand Down

0 comments on commit 6d05402

Please sign in to comment.