From 5c1897bc92c0fecd33b0ea617cd4c4398b64b4fa Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 4 Aug 2016 16:06:07 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cg-base.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/cg-base.h b/src/cg-base.h index 74b5550..662f044 100644 --- a/src/cg-base.h +++ b/src/cg-base.h @@ -46,6 +46,7 @@ extern libcoopgamma_crtc_info_t* crtc_info; extern size_t crtcs_n; + /** * Print usage information and exit */ @@ -68,6 +69,9 @@ extern void usage(void); * 1 if `arg` was used, * -1 on error */ +#if defined(__GNUC__) +__attribute__((__nonnull__(1))) +#endif extern int handle_opt(char* opt, char* arg); /** @@ -81,5 +85,8 @@ extern int handle_opt(char* opt, char* arg); * @param crtcs The arguments associated with the "-c" options, `NULL`-terminated * @return Zero on success, -1 on error */ +#if defined(__GNUC__) +__attribute__((__nonnull__(2))) +#endif extern int handle_args(int argc, char* argv[], char* method, char* site, char** crtcs); -- cgit v1.2.3-70-g09d2