2013-04-10 11:08:25

by Eugene Krasnikov

[permalink] [raw]
Subject: Build warning: net/wireless/reg.c:244:2: warning: the comparison will always evaluate as 'true'

Hi All,

While trying to build latest compat-drivers with old kernel version
3.0.60 build generates a warning:

/compat-drivers/net/wireless/reg.c:244:2: warning: the comparison will
always evaluate as 'true' for the address of 'core_request_world' will
never be NULL [-Waddress]

As a workaround this warning can be suppressed with pragma:
#pragma GCC diagnostic ignored "-Waddress"

but it is not a solution. Is it a known bug or maybe somebody has a
solution to this warning? Any suggestion is really appreciated.

--
Best regards,
Eugene