Merge lp:~bregma/geis/sentinel-check into lp:geis
Proposed by
Stephen M. Webb
Status: | Merged |
---|---|
Merged at revision: | 254 |
Proposed branch: | lp:~bregma/geis/sentinel-check |
Merge into: | lp:geis |
Diff against target: |
64 lines (+15/-7) 2 files modified
include/geis/geis.h (+7/-7) libutouch-geis/geis/geisimpl.h (+8/-0) |
To merge this branch: | bzr merge lp:~bregma/geis/sentinel-check |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chase Douglas (community) | Approve | ||
Review via email: mp+102701@code.launchpad.net |
Description of the change
Adds a GCC attribute to warn when a NULL terminator is missing from a variadic argument list.
No new tests are supplied: the functionality of this tweak can be verified by manually removing the terminating NULL from a geis_new() or geis_filter_
This change closes no bugs but reduces the incidents of help requests due to incorrect use of the API.
To post a comment you must log in.
The change is definitely good to have. +1.
I don't think we need a test for this because it merely emits a warning, but we could actually provide a test if we wanted to. I wrote a compile test for utouch-frame _Generic support, for example. There's nothing in our test setup that would prohibit this.