[MacPorts] #70841: bcv: assigning to 'char *' from 'const char *' discards qualifiers

MacPorts noreply at macports.org
Fri Sep 20 20:55:22 UTC 2024


#70841: bcv: assigning to 'char *' from 'const char *' discards qualifiers
----------------------+--------------------
 Reporter:  kwolcott  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:  bcv
----------------------+--------------------
 g++ -I. -DVERSION=\"2.2\" -c -o bcv.o bcv.cpp
 g++ -I. -DVERSION=\"2.2\" -c -o int.o int.cpp
 int.cpp:43:11: error: assigning to 'char *' from 'const char *' discards
 qualifiers
    43 |       p = strchr(radix, *txt);
       |           ^~~~~~~~~~~~~~~~~~~
 int.cpp:150:3: warning: array index 70 is past the end of the array (that
 has type 'char[70]') [-Warray-bounds]
   150 |   buf[sizeof(buf)] = 0;
       |   ^   ~~~~~~~~~~~
 int.cpp:103:3: note: array 'buf' declared here
   103 |   static char   buf[BUF_LEN];
       |   ^
 1 warning and 1 error generated.
 make: *** [int.o] Error 1
 make: *** Waiting for unfinished jobs....
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_bcv/bcv/work/bcv-2.2'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_bcv/bcv/work/bcv-2.2"
 && /usr/bin/make -j8 -w all
 Exit code: 2
 Error: Failed to build bcv: command execution failed

 MacOS 15.0 arm64

-- 
Ticket URL: <https://trac.macports.org/ticket/70841>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list