summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2018-02-01 15:17:51 +0000
committerokan <okan>2018-02-01 15:17:51 +0000
commit174537f29e4735799f5cafd29e34bb31f831f9b3 (patch)
tree5ae06a53b58d4c9968404e38be7873a187bfa5c5
parentf34e659ca7a8f169ba26f4ace13c3b2885888847 (diff)
downloadcwm-174537f29e4735799f5cafd29e34bb31f831f9b3.tar.gz
cwm-174537f29e4735799f5cafd29e34bb31f831f9b3.tar.xz
cwm-174537f29e4735799f5cafd29e34bb31f831f9b3.zip
Use func attributes where appropriate.
-rw-r--r--calmwm.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/calmwm.h b/calmwm.h
index e59ddb8..117cdb0 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -518,12 +518,15 @@ void			 kbfunc_exec_lock(void *, struct cargs *);
 void			 kbfunc_exec_term(void *, struct cargs *);
 
 void			 menu_windraw(struct screen_ctx *, Window,
-			     const char *, ...);
+			     const char *, ...)
+			    __attribute__((__format__ (printf, 3, 4)))
+			    __attribute__((__nonnull__ (3)));
 struct menu  		*menu_filter(struct screen_ctx *, struct menu_q *,
 			     const char *, const char *, int,
 			     void (*)(struct menu_q *, struct menu_q *, char *),
 			     void (*)(struct menu *, int));
-void			 menuq_add(struct menu_q *, void *, const char *, ...);
+void			 menuq_add(struct menu_q *, void *, const char *, ...)
+			    __attribute__((__format__ (printf, 3, 4)));
 void			 menuq_clear(struct menu_q *);
 
 int			 parse_config(const char *, struct conf *);