[Bug 268864] science/silo: fix build with clang 15

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 10 Jan 2023 18:18:34 UTC

            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:

error: incompatible integer to pointer conversion passing 'char' to parameter
of type 'const char *'; take the address with & [-Wint-conversi
              DB_OBJ_CASE(DB_CURVE, DBcurve_mt, npts?1:1, yvarname)
note: expanded from macro 'DB_OBJ_CASE'
              (*dsnames)[i] = strdup(m.MEMNAME[i]);                \
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

You are receiving this mail because:
You are the assignee for the bug.