[PATCH] Fix unused malloc return value warning

2019-08-29 Thread François Dumont
Hi     I am having this warning: /home/fdt/dev/gcc/git/libstdc++-v3/testsuite/util/testsuite_performance.h:170: attention: ignoring return value of « void* malloc(size_t) » declared with attribute « warn_unused_result » [-Wunused-result]   170 |   malloc(0); // Needed for some implementat

Re: [PATCH] Fix unused malloc return value warning

2019-08-30 Thread Jonathan Wakely
On 29/08/19 21:54 +0200, François Dumont wrote: Hi     I am having this warning: /home/fdt/dev/gcc/git/libstdc++-v3/testsuite/util/testsuite_performance.h:170: attention: ignoring return value of « void* malloc(size_t) » declared with attribute « warn_unused_result » [-Wunused-result]   170