summaryrefslogtreecommitdiff
path: root/src/Composite.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-05-08 21:15:08 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-05-18 06:41:36 -0400
commit91f1119528b57f94d178f0cfb12efafd0c90bbc9 (patch)
treeb98c68ebf25eb4c477fa99c2548d2c8a4804a4c0 /src/Composite.c
parent43a65ae23370e0f7fb427e96c6d9037d8fa1af35 (diff)
fixes cppcheck "style" warnings (mostly variable-scope)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Composite.c')
-rw-r--r--src/Composite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Composite.c b/src/Composite.c
index a9d13a5..5188514 100644
--- a/src/Composite.c
+++ b/src/Composite.c
@@ -139,7 +139,7 @@ static void InheritAllowsChangeManagedSet(
WidgetClass widget_class)
{
CompositeWidgetClass cc = (CompositeWidgetClass) widget_class;
- CompositeClassExtension ext, super_ext, new_ext;
+ CompositeClassExtension ext, super_ext;
ext = (CompositeClassExtension)
XtGetClassExtension(widget_class,
@@ -158,6 +158,7 @@ static void InheritAllowsChangeManagedSet(
if (super_ext && super_ext->version == XtCompositeExtensionVersion &&
super_ext->record_size == sizeof(CompositeClassExtensionRec) &&
super_ext->allows_change_managed_set) {
+ CompositeClassExtension new_ext;
new_ext = (CompositeClassExtension)
__XtCalloc(1, sizeof(CompositeClassExtensionRec));