diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-05-09 13:13:32 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-05-09 13:13:32 -0700 |
commit | a415214bf282dcc8385f2101e6f8c018e188fa41 (patch) | |
tree | 663f68ceebfc6de5e64fa1459bc0a385cb262717 /editresP.h | |
parent | a6733f76dad52644bd45a8674bf0ea97c6e424ac (diff) |
Fix -Wmissing-noreturn warnings
editres.c:140:1: warning: function 'Syntax' could be declared with
attribute 'noreturn' [-Wmissing-noreturn]
handler.c:65:1: warning: function 'Quit' could be declared with
attribute 'noreturn' [-Wmissing-noreturn]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'editresP.h')
-rw-r--r-- | editresP.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -28,6 +28,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/Xmu/EditresP.h> #include <X11/Xresource.h> +#include <X11/Xfuncproto.h> #define DEBUG @@ -403,7 +404,7 @@ extern void PrintNodes ( WNode * top ); extern char * PrintSetValuesError ( Event * event ); extern char * ProtocolFailure ( ProtocolStream * stream ); extern XrmQuarkList Quarkify ( char ** list, char * ptr ); -extern void Quit ( Widget w, XtPointer client_data, XtPointer call_data ); +extern void Quit ( Widget w, XtPointer client_data, XtPointer call_data ) _X_NORETURN; extern void RebuildMenusAndLabel ( String toolkit ); extern void ResourceListCallback ( Widget list, XtPointer node_ptr, XtPointer junk ); extern void SaveResource ( Widget w, XtPointer res_box_ptr, XtPointer junk ); |