diff options
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index cdb2472706c..d262c650e1c 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -322,10 +322,22 @@ uiPopupMenu *uiPupMenuBegin(struct bContext *C, const char *title, int icon); void uiPupMenuEnd(struct bContext *C, struct uiPopupMenu *head); struct uiLayout *uiPupMenuLayout(uiPopupMenu *head); -void uiPupMenuOkee(struct bContext *C, const char *opname, const char *str, ...); +void uiPupMenuOkee(struct bContext *C, const char *opname, const char *str, ...) +#ifdef __GNUC__ +__attribute__ ((format (printf, 3, 4))) +#endif +; void uiPupMenuSaveOver(struct bContext *C, struct wmOperator *op, const char *filename); -void uiPupMenuNotice(struct bContext *C, const char *str, ...); -void uiPupMenuError(struct bContext *C, const char *str, ...); +void uiPupMenuNotice(struct bContext *C, const char *str, ...) +#ifdef __GNUC__ +__attribute__ ((format (printf, 2, 3))) +#endif +; +void uiPupMenuError(struct bContext *C, const char *str, ...) +#ifdef __GNUC__ +__attribute__ ((format (printf, 2, 3))) +#endif +; void uiPupMenuReports(struct bContext *C, struct ReportList *reports); void uiPupMenuInvoke(struct bContext *C, const char *idname); /* popup registered menu */ |