aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-01-21 10:57:16 +0100
committerMattias Andrée <maandree@operamail.com>2014-01-21 10:57:16 +0100
commita57da061a5d9f2b6fd3fa5a82e59561c9b9c13de (patch)
treeb664307e8700460d637e7879c9117fcf3531cd7b
parentm (diff)
downloadalgorithms-and-data-structures-a57da061a5d9f2b6fd3fa5a82e59561c9b9c13de.tar.gz
algorithms-and-data-structures-a57da061a5d9f2b6fd3fa5a82e59561c9b9c13de.tar.bz2
algorithms-and-data-structures-a57da061a5d9f2b6fd3fa5a82e59561c9b9c13de.tar.xz
compile with -Xlint:all,-cast
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 443ad69..914d9a4 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ OBJ = $(shell find src | grep '\.java$$' | sed -e 's:^src:obj:' | sed -e 's:java
all: $(OBJ)
obj/%.class: obj/%.java
- $(JAVAC) -s obj -d obj -cp obj "$<"
+ $(JAVAC) '-Xlint:all,-cast' -s obj -d obj -cp obj "$<"
obj/%.java: src/%.java $(foreach F, $(PP), src/$(F))
mkdir -p "$(shell dirname "$@")"