summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-12-07 18:01:47 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-12-07 18:02:58 -0800
commit7b4af57e8a1471747e17fff184032d8250e598b6 (patch)
tree94871dc700c18fe94c8e1ad9ad5a5021f3036431 /src
parentb083fdfa5066c264ec5abd1961937f64c975d797 (diff)
Multisink.c: Clear -Werror=incompatible-pointer-types error
MultiSink.c: In function ‘SetValues’: MultiSink.c:582:18: error: passing argument 1 of ‘SetTabs’ from incompatible pointer type [-Werror=incompatible-pointer-types] 582 | SetTabs( w, w->text_sink.tab_count, w->text_sink.char_tabs ); | ^ | | | MultiSinkObject {aka struct _MultiSinkRec *} MultiSink.c:99:21: note: expected ‘Widget’ {aka ‘struct _WidgetRec *’} but argument is of type ‘MultiSinkObject’ {aka ‘struct _MultiSinkRec *’} 99 | static void SetTabs(Widget, int, short *); | ^~~~~~ Adopts change originally made to libXaw in XFree86 4 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r--src/MultiSink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MultiSink.c b/src/MultiSink.c
index acf6caa..cbae854 100644
--- a/src/MultiSink.c
+++ b/src/MultiSink.c
@@ -579,7 +579,7 @@ SetValues(Widget current, Widget request, Widget new, ArgList args, Cardinal *nu
if ( w->multi_sink.fontset != old_w->multi_sink.fontset ) {
((TextWidget)XtParent(new))->text.redisplay_needed = True;
#ifndef NO_TAB_FIX
- SetTabs( w, w->text_sink.tab_count, w->text_sink.char_tabs );
+ SetTabs((Widget)w, w->text_sink.tab_count, w->text_sink.char_tabs);
#endif
}