SVN 1404 warning on Mac OS

2021-01-18 Thread lchretien--- via Bugs and suggestions for GNU APL
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.cc
Quad_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[]' here
UTF8 * buffer = new UTF8[st.st_size];
^
2 warnings generated.
mv -f .deps/apl-Quad_XML.Tpo .deps/apl-Quad_XML.Po


---
Louis Chrétien
lchret...@mac.com






Re: SVN 1404 warning on Mac OS

2021-01-18 Thread Dr . Jürgen Sauermann

  
  
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.cc
Quad_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[]' here
UTF8
* buffer = new UTF8[st.st_size];
 
              ^
2
warnings generated.
mv
-f .deps/apl-Quad_XML.Tpo .deps/apl-Quad_XML.Po

  

  
  
---
  Louis Chrétien
  lchret...@mac.com
  
  
  

  


  


  




Re: SVN 1404 warning on Mac OS

2021-01-18 Thread lchretien--- via Bugs and suggestions for GNU APL


> On Jan 18, 2021, at 12:21, Dr. Jürgen Sauermann 
>  wrote:
> 
> 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).

But on Mac OS X, the default compiler is clang, so I guess it could be true.

> 
> This one might actually haunt us for a while because there are many
> "using namespace std" in the GNU APL code.

Strange, because that is the only warning I got out of all the compiles. Maybe 
you were doing something a little different in Quad_XML.cc 
?

> 
> I also fixed the other warning, SVN 1405.
> 
> Best Regards,
> Jürgen


---
Louis Chrétien
lchret...@mac.com






Re: SVN 1404 warning on Mac OS

2021-01-18 Thread Elias Mårtenson
How about disabling that specific warning?

Den tis 19 jan. 2021 01:51Dr. Jürgen Sauermann 
skrev:

> 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.cc
> 
> Quad_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[]' here
> UTF8 * buffer = new UTF8[st.st_size];
> ^
> 2 warnings generated.
> mv -f .deps/apl-Quad_XML.Tpo .deps/apl-Quad_XML.Po
>
>
> ---
> Louis Chrétien
> lchret...@mac.com
>
>
>
>
>
>