diff options
author | Mattias Andrée <maandree@kth.se> | 2016-08-04 16:06:07 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-08-04 16:06:07 +0200 |
commit | 5c1897bc92c0fecd33b0ea617cd4c4398b64b4fa (patch) | |
tree | c5b2c56d4b6dc42657388c65bf6e4a36f92cdeac /src/cg-base.h | |
parent | whitespace (diff) | |
download | cg-tools-5c1897bc92c0fecd33b0ea617cd4c4398b64b4fa.tar.gz cg-tools-5c1897bc92c0fecd33b0ea617cd4c4398b64b4fa.tar.bz2 cg-tools-5c1897bc92c0fecd33b0ea617cd4c4398b64b4fa.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/cg-base.h | 7 |
1 files changed, 7 insertions, 0 deletions
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); |