Skip to content

kdtree: include alloca.h if the system has it

Alan Coopersmith requested to merge alanc/libgweather:solaris into main

Fixes build error on Solaris with gcc 14:

../libgweather/third-party/kdtree.c: In function ‘kd_insertf’:
../libgweather/third-party/kdtree.c:224:38: error: implicit declaration
 of function ‘alloca’ [-Wimplicit-function-declaration]
  224 |                         bptr = buf = alloca(dim * sizeof *bptr);
      |                                      ^~~~~~

Signed-off-by: Alan Coopersmith

Merge request reports

Loading