-
Incident report
-
Resolution: Fixed
-
Minor
-
2.2.11rc1
There is the following compilation warning when compiling Zabbix agent on NetBSD 5.0:
In file included from listener.c:20: ../../include/common.h:796:1: warning: "SIZE_T_MAX" redefined In file included from /usr/include/sys/param.h:154, from /usr/include/arpa/nameser.h:58, from ../../include/sysinc.h:137, from ../../include/common.h:23, from listener.c:20: /usr/include/machine/limits.h:73:1: warning: this is the location of the previous definition
It was introduced in ZBX-9682. While working on it, it might be nice to also fix definitions like the following:
#define is_ushort(str, value) \ is_uint_n_range(str, (size_t)SIZE_T_MAX, value, sizeof(unsigned short), 0x0, 0xFFFF)
Here, (size_t) cast is unnecessary, provided SIZE_T_MAX is of type size_t.