diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2024-02-28 18:04:28 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2024-02-28 20:48:29 -0500 |
commit | eb5cbbd6f8056b3008c0f8e7e603b10a3ff4cbb2 (patch) | |
tree | d94a20715e492777cf2dc8a3e50a8e95185a38bd | |
parent | 5c23a1f5e5b0961a0938a8f3da1c9ad01fe67af7 (diff) |
fix missing-initializer warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r-- | src/AllWidgets.c | 2 | ||||
-rw-r--r-- | src/AsciiSrc.c | 3 | ||||
-rw-r--r-- | src/AsciiText.c | 5 | ||||
-rw-r--r-- | src/Command.c | 3 | ||||
-rw-r--r-- | src/Dialog.c | 3 | ||||
-rw-r--r-- | src/Grip.c | 3 | ||||
-rw-r--r-- | src/Label.c | 3 | ||||
-rw-r--r-- | src/List.c | 5 | ||||
-rw-r--r-- | src/MenuButton.c | 5 | ||||
-rw-r--r-- | src/MultiSink.c | 1 | ||||
-rw-r--r-- | src/Paned.c | 4 | ||||
-rw-r--r-- | src/Repeater.c | 3 | ||||
-rw-r--r-- | src/Scrollbar.c | 3 | ||||
-rw-r--r-- | src/Simple.c | 3 | ||||
-rw-r--r-- | src/SimpleMenu.c | 3 | ||||
-rw-r--r-- | src/TextSink.c | 3 | ||||
-rw-r--r-- | src/TextSrc.c | 3 | ||||
-rw-r--r-- | src/Toggle.c | 3 | ||||
-rw-r--r-- | src/Viewport.c | 3 |
19 files changed, 59 insertions, 2 deletions
diff --git a/src/AllWidgets.c b/src/AllWidgets.c index 8a7490f..9171242 100644 --- a/src/AllWidgets.c +++ b/src/AllWidgets.c @@ -60,7 +60,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/Xaw/Tree.h> #include <X11/Xaw/Viewport.h> -#define DATA(name,class) { (char *)name, class } +#define DATA(name,class) { (char *)name, class, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } XmuWidgetNode XawWidgetArray[] = { DATA( "applicationShell", &applicationShellWidgetClass ), DATA( "asciiSink", &asciiSinkObjectClass ), diff --git a/src/AsciiSrc.c b/src/AsciiSrc.c index 0248617..61b19e1 100644 --- a/src/AsciiSrc.c +++ b/src/AsciiSrc.c @@ -244,6 +244,9 @@ AsciiSrcClassRec asciiSrcClassRec = { Search, /* Search */ XtInheritSetSelection, /* SetSelection */ XtInheritConvertSelection, /* ConvertSelection */ +#ifndef OLDXAW + NULL, +#endif }, /* ascii_src */ { diff --git a/src/AsciiText.c b/src/AsciiText.c index 65a2323..32c7db1 100644 --- a/src/AsciiText.c +++ b/src/AsciiText.c @@ -123,10 +123,15 @@ AsciiTextClassRec asciiTextClassRec = { NULL, /* callback_private */ XtInheritTranslations, /* tm_table */ XtInheritQueryGeometry, /* query_geometry */ + NULL, /* display_accelerator */ + NULL, /* extension */ }, /* simple */ { XtInheritChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL, +#endif }, /* text */ { diff --git a/src/Command.c b/src/Command.c index 053a1f4..a021073 100644 --- a/src/Command.c +++ b/src/Command.c @@ -200,6 +200,9 @@ CommandClassRec commandClassRec = { /* simple */ { ChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL, +#endif }, /* label */ { diff --git a/src/Dialog.c b/src/Dialog.c index c285b10..9a9f348 100644 --- a/src/Dialog.c +++ b/src/Dialog.c @@ -174,6 +174,9 @@ DialogClassRec dialogClassRec = { /* form */ { XtInheritLayout, /* layout */ +#ifndef OLDXAW + NULL, +#endif }, /* dialog */ { @@ -160,6 +160,9 @@ GripClassRec gripClassRec = { /* simple */ { XtInheritChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL, +#endif }, /* grip */ { diff --git a/src/Label.c b/src/Label.c index f8bad69..5707dd0 100644 --- a/src/Label.c +++ b/src/Label.c @@ -253,6 +253,9 @@ LabelClassRec labelClassRec = { /* simple */ { XtInheritChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL, +#endif }, /* label */ { @@ -300,10 +300,15 @@ ListClassRec listClassRec = { NULL, /* callback_private */ defaultTranslations, /* tm_table */ XawListQueryGeometry, /* query_geometry */ + NULL, /* display_accelerator */ + NULL, /* extension */ }, /* simple */ { XtInheritChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL, +#endif }, /* list */ { diff --git a/src/MenuButton.c b/src/MenuButton.c index ff75d90..face84c 100644 --- a/src/MenuButton.c +++ b/src/MenuButton.c @@ -128,7 +128,10 @@ MenuButtonClassRec menuButtonClassRec = { }, /* simple */ { - XtInheritChangeSensitive /* change_sensitive */ + XtInheritChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL, +#endif }, /* label */ { diff --git a/src/MultiSink.c b/src/MultiSink.c index 6bb2465..9f7fc78 100644 --- a/src/MultiSink.c +++ b/src/MultiSink.c @@ -212,6 +212,7 @@ MultiSinkClassRec multiSinkClassRec = { MaxHeight, /* MaxHeight */ SetTabs, /* SetTabs */ GetCursorBounds, /* GetCursorBounds */ + NULL, /* extension */ }, /* multi_sink */ { diff --git a/src/Paned.c b/src/Paned.c index 736003b..e68615a 100644 --- a/src/Paned.c +++ b/src/Paned.c @@ -466,6 +466,10 @@ PanedClassRec panedClassRec = { XawPanedPaneSetValues, /* set_values */ NULL, /* extension */ }, + /* paned */ + { + NULL, /* extension */ + } }; WidgetClass panedWidgetClass = (WidgetClass)&panedClassRec; diff --git a/src/Repeater.c b/src/Repeater.c index 19537b4..fc39c5e 100644 --- a/src/Repeater.c +++ b/src/Repeater.c @@ -190,6 +190,9 @@ RepeaterClassRec repeaterClassRec = { /* simple */ { XtInheritChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL, +#endif }, /* label */ { diff --git a/src/Scrollbar.c b/src/Scrollbar.c index 5bc8db9..ac75083 100644 --- a/src/Scrollbar.c +++ b/src/Scrollbar.c @@ -316,6 +316,9 @@ ScrollbarClassRec scrollbarClassRec = { /* simple */ { XtInheritChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL, +#endif }, /* scrollbar */ { diff --git a/src/Simple.c b/src/Simple.c index ae322cb..189a2ff 100644 --- a/src/Simple.c +++ b/src/Simple.c @@ -225,6 +225,9 @@ SimpleClassRec simpleClassRec = { /* simple */ { ChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL, +#endif }, }; diff --git a/src/SimpleMenu.c b/src/SimpleMenu.c index b482ea1..e3f1e2b 100644 --- a/src/SimpleMenu.c +++ b/src/SimpleMenu.c @@ -272,6 +272,9 @@ static CompositeClassExtensionRec extension_rec = { XtCompositeExtensionVersion, /* version */ sizeof(CompositeClassExtensionRec), /* record_size */ True, /* accepts_objects */ +#ifndef OLDXAW + False, /* allows_change_managed_set */ +#endif }; #define Superclass (&overrideShellClassRec) diff --git a/src/TextSink.c b/src/TextSink.c index 3b43576..e96348f 100644 --- a/src/TextSink.c +++ b/src/TextSink.c @@ -198,6 +198,9 @@ TextSinkClassRec textSinkClassRec = { MaxHeight, /* MaxHeight */ SetTabs, /* SetTabs */ GetCursorBounds, /* GetCursorBounds */ +#ifndef OLDXAW + NULL, +#endif }, }; diff --git a/src/TextSrc.c b/src/TextSrc.c index 4630158..9295b85 100644 --- a/src/TextSrc.c +++ b/src/TextSrc.c @@ -231,6 +231,9 @@ TextSrcClassRec textSrcClassRec = { Search, /* Search */ SetSelection, /* SetSelection */ ConvertSelection, /* ConvertSelection */ +#ifndef OLDXAW + NULL, /* extension */ +#endif }, }; diff --git a/src/Toggle.c b/src/Toggle.c index 7ab6ad4..8fc8960 100644 --- a/src/Toggle.c +++ b/src/Toggle.c @@ -159,6 +159,9 @@ ToggleClassRec toggleClassRec = { /* simple */ { XtInheritChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL, +#endif }, /* label */ { diff --git a/src/Viewport.c b/src/Viewport.c index fbd701e..122117d 100644 --- a/src/Viewport.c +++ b/src/Viewport.c @@ -216,6 +216,9 @@ ViewportClassRec viewportClassRec = { /* form */ { Layout, /* layout */ +#ifndef OLDXAW + NULL, +#endif }, /* viewport */ { |