Hm, that is strange, you should open an issue at OTP to report it.
Debugging it is hard, for me at least, as said here,
When the
inline_list_funcs
option is given, the compiler uses hard-coded knowledge of a few of the functions in thelists
module.
Anyway, with a little trial and error, I found that it seems to be related to your use of erlang:is_integer/1
as predicate function. Using functions from other modules than erlang
or an anonymous function does not result in that warning.
You can work around your problem for now by wrapping erlang:is_integer/1
in an anonymous function, like
lists:all(fun(X) -> is_integer(X) end, Values)