aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-01-24 11:53:52 +0100
committerBjörn Gustavsson <[email protected]>2013-01-24 11:53:52 +0100
commit21c1b8261c5cc39515de8ff65e4fa9a9405e1399 (patch)
tree5d21008e429f910f51f8684a02e5a748925dd5dc /lib/kernel
parente5de0874b9f924b2007233bbfd2df9c361141eea (diff)
parent13dc75d665058fea45d8bf33dff785049903cfd9 (diff)
downloadotp-21c1b8261c5cc39515de8ff65e4fa9a9405e1399.tar.gz
otp-21c1b8261c5cc39515de8ff65e4fa9a9405e1399.tar.bz2
otp-21c1b8261c5cc39515de8ff65e4fa9a9405e1399.zip
Merge branch 'bjorn/warnings-zero-tolerance'
* bjorn/warnings-zero-tolerance: Turn warnings to errors on selected applications runtime_tools_sup: Eliminate warning inet_parse: Eliminate a compiler warning
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/src/Makefile2
-rw-r--r--lib/kernel/src/inet_parse.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile
index eaced4861a..2b529a85b0 100644
--- a/lib/kernel/src/Makefile
+++ b/lib/kernel/src/Makefile
@@ -148,7 +148,7 @@ APPUP_TARGET= $(EBIN)/$(APPUP_FILE)
ifeq ($(NATIVE_LIBS_ENABLED),yes)
ERL_COMPILE_FLAGS += +native
endif
-ERL_COMPILE_FLAGS += -I../include
+ERL_COMPILE_FLAGS += -I../include -Werror
# ----------------------------------------------------
# Targets
diff --git a/lib/kernel/src/inet_parse.erl b/lib/kernel/src/inet_parse.erl
index 3551e701b6..a7ac6ce040 100644
--- a/lib/kernel/src/inet_parse.erl
+++ b/lib/kernel/src/inet_parse.erl
@@ -464,7 +464,7 @@ strict_address(Cs) when is_list(Cs) ->
_ ->
ipv6strict_address(Cs)
end;
-strict_address(Cs) ->
+strict_address(_) ->
{error, einval}.
%%