[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mosquitto-dev] Mosquitto 1.6.4
|
Thanks Greg.
I managed to reproduce this by playing with some preprocessor flags
and have just pushed the fix.
Cheers,
Roger
On Fri, 2 Aug 2019 at 00:41, Greg Troxel <gdt@xxxxxxxxxx> wrote:
>
> THanks. I have updated pkgsrc.
>
>
> I noticed some warnings (netbsd-8 amd64, gcc 5.5); not sure they appear in
> other environments:
>
> [ 15%] Building C object lib/CMakeFiles/libmosquitto.dir/mosquitto.c.o
> /tmp/work/net/mosquitto/work/mosquitto-1.6.4/lib/mosquitto.c: In function 'mosquitto_string_to_command':
> /tmp/work/net/mosquitto/work/mosquitto-1.6.4/lib/mosquitto.c:511:6: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
> if(!strcasecmp(str, "connect")){
> ^
> [ 20%] Building C object lib/CMakeFiles/libmosquitto.dir/property_mosq.c.o
> /tmp/work/net/mosquitto/work/mosquitto-1.6.4/lib/property_mosq.c: In function 'mosquitto_string_to_property_info':
> /tmp/work/net/mosquitto/work/mosquitto-1.6.4/lib/property_mosq.c:525:6: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
> if(!strcasecmp(propname, "payload-format-indicator")){
> ^
>
> The problem is that <strings.h> is not included, which POSIX says is
> required:
>
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp_l.html
>