Date: Tue, 10 Jan 2023 18:18:34 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268864] science/silo: fix build with clang 15 Message-ID: <bug-268864-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268864 Bug ID: 268864 Summary: science/silo: fix build with clang 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: yuri@freebsd.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(yuri@freebsd.org) Assignee: yuri@freebsd.org During an exp-run for llvm 15 (see bug 265425), it turned out that science/= silo failed to build with clang 15: =20 /wrkdirs/usr/ports/science/silo/work/Silo-4.11-68-g819658e/src/hdf5_drv/sil= o_hdf5.c:1869:13: error: incompatible integer to pointer conversion passing 'char' to paramet= er of type 'const char *'; take the address with & [-Wint-conversi DB_OBJ_CASE(DB_CURVE, DBcurve_mt, npts?1:1, yvarname) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =20 /wrkdirs/usr/ports/science/silo/work/Silo-4.11-68-g819658e/src/hdf5_drv/sil= o_hdf5.c:1812:36: note: expanded from macro 'DB_OBJ_CASE' (*dsnames)[i] =3D strdup(m.MEMNAME[i]); \ ~~~~~~~^~~~~~~~~~~~~ =20 /wrkdirs/usr/ports/science/silo/work/Silo-4.11-68-g819658e/src/silo/silo_pr= ivate.h:939:35: note: expanded from macro 'strdup' #define strdup(s) _db_safe_strdup(s) ^ /wrkdirs/usr/ports/science/silo/work/.build/include/silo.h:2214:68: note: passing argument to parameter here SILO_API extern char * _db_safe_strdup(const char *); ^ This turns out to be a bug in silo, which I reported upstream in https://github.com/LLNL/Silo/issues/296, and which was fixed in https://github.com/LLNL/Silo/commit/be29ddf. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268864-7788>