Skip to content

explicitly add compiler warnings when functions are not checked #3

@skinkie

Description

@skinkie

In the following commit I have made an attempt to mark functions 'must_check', 'dont_check' and because it is many work to get everything right in one go: 'should_chk'.

https://github.com/cherokee/webserver/blob/ac612d718e3b6d55223696ef54375215fe66c577/cherokee/buffer.h

I wonder what you think about it from a technical point of view. My guess is that checking every chula_buffer_add_* operation might be a wasteful exercise. On the other hand, if realloc_inc_bufsize fails, and we continue, we end up in a failing cascade of functions which can result in a template engine producing garbage, including the scenario where are call 1 no memory is available but at call 2 there is.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions