[MacPorts] #70841: bcv @2.2: error: assigning to 'char *' from 'const char *' discards qualifiers (was: bcv: assigning to 'char *' from 'const char *' discards qualifiers)
MacPorts
noreply at macports.org
Sat Sep 21 01:18:54 UTC 2024
#70841: bcv @2.2: error: assigning to 'char *' from 'const char *' discards
qualifiers
-----------------------+---------------------------
Reporter: kwolcott | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sequoia arm64
Port: bcv |
-----------------------+---------------------------
Changes (by ryandesign):
* keywords: => sequoia arm64
Old description:
> 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
New description:
{{{
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
--
Comment:
Remember to use WikiFormatting.
--
Ticket URL: <https://trac.macports.org/ticket/70841#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list