On Thu, 2017-04-27 at 10:42 -0600, Jeff Law wrote:
> On 04/25/2017 05:02 PM, Martin Sebor wrote:
> > On 04/25/2017 02:35 PM, Joe Perches wrote:
> > > A possibly useful addition similar to:
> > >
> > > __attribute__((warn_unused_result))
> > >
> > > might be
> > >
> > > __attribute__((warn_untest
On 04/25/2017 05:02 PM, Martin Sebor wrote:
On 04/25/2017 02:35 PM, Joe Perches wrote:
A possibly useful addition similar to:
__attribute__((warn_unused_result))
might be
__attribute__((warn_untested_result))
for things like allocation failures that
are not verified before use.
I agree tha
On 04/25/2017 02:35 PM, Joe Perches wrote:
A possibly useful addition similar to:
__attribute__((warn_unused_result))
might be
__attribute__((warn_untested_result))
for things like allocation failures that
are not verified before use.
I agree that this would be a useful feature. In fact, I
A possibly useful addition similar to:
__attribute__((warn_unused_result))
might be
__attribute__((warn_untested_result))
for things like allocation failures that
are not verified before use.
For instance:
void *malloc(size_t size);
could become
void * __attribute((warn_untested_res