Opened 17 months ago

Last modified 16 months ago

#5407 new defect

ptarray.c concerning warnings on mingw64

Reported by: robe Owned by: robe
Priority: medium Milestone: PostGIS 3.5.0
Component: postgis Version: master
Keywords: Cc:

Description (last modified by robe)

ptarray.c: In function 'ptarray_scroll_in_place':
ptarray.c:2196:2: error: implicit declaration of function 'bzero' [-Werror=implicit-function-declaration]
  bzero(getPoint_internal(tmp, 0), ptsize * pa->npoints);
  ^~~~~
ptarray.c:2196:2: error: incompatible implicit declaration of built-in function 'bzero' [-Werror]
cc1.exe: all warnings being treated as errors
make[1]: *** [Makefile:219: ptarray.lo] Error 1
make[1]: Leaving directory '/projects/postgis/postgis-git/liblwgeom'
make: *** [GNUmakefile:25: all] Error 1

I set my CFLAGS to same as gitlab to catch these notices it was complaining about in address standardizer.

CFLAGS=-Wall -fno-omit-frame-pointer -Werror

But now I get the above error. I'm assuming it's something particular about my setup since I think other bots are running with these settings and doing fine.

Change History (3)

comment:1 by robe, 17 months ago

Description: modified (diff)
Milestone: PostGIS 3.4.0PostGIS 3.5.0

comment:2 by pramsey, 16 months ago

So, bzero is a standard lib function, on MacOS it shows up in strings.h. Grep through your system headers or check the man page and see where it's defined.

comment:3 by robe, 16 months ago

Owner: changed from pramsey to robe
Note: See TracTickets for help on using tickets.