Opened 8 weeks ago

Last modified 8 weeks ago

#70841 new defect

bcv @2.2: error: assigning to 'char *' from 'const char *' discards qualifiers — at Version 1

Reported by: kwolcott Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: sequoia arm64 Cc:
Port: bcv

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (1)

comment:1 Changed 8 weeks ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sequoia arm64 added
Summary: bcv: assigning to 'char *' from 'const char *' discards qualifiersbcv @2.2: error: assigning to 'char *' from 'const char *' discards qualifiers

Remember to use WikiFormatting.

Note: See TracTickets for help on using tickets.