|
From: | Elias Mårtenson |
Subject: | Re: SVN 1404 warning on Mac OS |
Date: | Tue, 19 Jan 2021 09:01:05 +0800 |
Hi Louis,
thanks, lookd like the compiler guys were again busy with implementing new stupid warnings.
I remember that some time ago gcc would complain the other way around (when
"using namespace std" was missing as opposed to being present).
This one might actually haunt us for a while because there are many
"using namespace std" in the GNU APL code.
I also fixed the other warning, SVN 1405.
Best Regards,
Jürgen
On 1/18/21 5:29 PM, lchretien--- via Bugs and suggestions for GNU APL wrote:
After updating to SVN 1404 on my Mac OS machine, I get the following warning:
g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I sql -g -O2 -MT apl-Quad_XML.o -MD -MP -MF .deps/apl-Quad_XML.Tpo -c -o apl-Quad_XML.o `test -f 'Quad_XML.cc' || echo './'`Quad_XML.ccQuad_XML.cc:21:17: warning: using directive refers to implicitly-defined namespace 'std'using namespace std;^Quad_XML.cc:1229:4: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'?[-Wmismatched-new-delete]delete buffer;^[]Quad_XML.cc:1210:17: note: allocated with 'new[]' hereUTF8 * buffer = new UTF8[st.st_size];^2 warnings generated.mv -f .deps/apl-Quad_XML.Tpo .deps/apl-Quad_XML.Po
---Louis Chrétien
[Prev in Thread] | Current Thread | [Next in Thread] |