From: Christophe CURIS <christophe.cu...@free.fr> It is dangerous to let the compiler know about a function without letting him know the arguments because he won't be able to report invalid calls.
This patch concern the cases where adding the arguments did not need other code change. --- WINGs/wcolorwell.c | 2 +- WINGs/wlist.c | 2 +- WINGs/wprogressindicator.c | 2 +- WINGs/wscroller.c | 2 +- WINGs/wscrollview.c | 4 ++-- WINGs/wslider.c | 2 +- WINGs/wtextfield.c | 2 +- WINGs/wwindow.c | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/WINGs/wcolorwell.c b/WINGs/wcolorwell.c index ed39619..1793485 100644 --- a/WINGs/wcolorwell.c +++ b/WINGs/wcolorwell.c @@ -37,7 +37,7 @@ static void handleDragEvents(XEvent * event, void *data); static void handleActionEvents(XEvent * event, void *data); -static void willResizeColorWell(); +static void willResizeColorWell(W_ViewDelegate * self, WMView * view, unsigned int *width, unsigned int *height); W_ViewDelegate _ColorWellViewDelegate = { NULL, diff --git a/WINGs/wlist.c b/WINGs/wlist.c index 360bb6c..625b4bb 100644 --- a/WINGs/wlist.c +++ b/WINGs/wlist.c @@ -64,7 +64,7 @@ static void vScrollCallBack(WMWidget * scroller, void *self); static void toggleItemSelection(WMList * lPtr, int index); static void updateGeometry(WMList * lPtr); -static void didResizeList(); +static void didResizeList(W_ViewDelegate * self, WMView * view); static void unselectAllListItems(WMList * lPtr, WMListItem * exceptThis); diff --git a/WINGs/wprogressindicator.c b/WINGs/wprogressindicator.c index a897a9e..79b9ea0 100644 --- a/WINGs/wprogressindicator.c +++ b/WINGs/wprogressindicator.c @@ -24,7 +24,7 @@ typedef struct W_ProgressIndicator { /* define if only the ticks within the progress region should be displayed */ #undef SHOW_PROGRESS_TICKS_ONLY -static void didResizeProgressIndicator(); +static void didResizeProgressIndicator(W_ViewDelegate * self, WMView * view); W_ViewDelegate _ProgressIndicatorDelegate = { NULL, diff --git a/WINGs/wscroller.c b/WINGs/wscroller.c index e6d2cd3..f037c24 100644 --- a/WINGs/wscroller.c +++ b/WINGs/wscroller.c @@ -73,7 +73,7 @@ typedef struct W_Scroller { static void destroyScroller(Scroller * sPtr); static void paintScroller(Scroller * sPtr); -static void willResizeScroller(); +static void willResizeScroller(W_ViewDelegate * self, WMView * view, unsigned int *width, unsigned int *height); static void handleEvents(XEvent * event, void *data); static void handleActionEvents(XEvent * event, void *data); diff --git a/WINGs/wscrollview.c b/WINGs/wscrollview.c index ae3daae..091b1af 100644 --- a/WINGs/wscrollview.c +++ b/WINGs/wscrollview.c @@ -28,8 +28,8 @@ static void destroyScrollView(ScrollView * sPtr); static void paintScrollView(ScrollView * sPtr); static void handleEvents(XEvent * event, void *data); static void handleViewportEvents(XEvent * event, void *data); -static void resizeScrollView(); -static void updateScrollerProportion(); +static void resizeScrollView(W_ViewDelegate *self, WMView *view); +static void updateScrollerProportion(ScrollView *sPtr); W_ViewDelegate _ScrollViewViewDelegate = { NULL, diff --git a/WINGs/wslider.c b/WINGs/wslider.c index 1ee7dae..f1f43fb 100644 --- a/WINGs/wslider.c +++ b/WINGs/wslider.c @@ -29,7 +29,7 @@ typedef struct W_Slider { } Slider; -static void didResizeSlider(); +static void didResizeSlider(W_ViewDelegate * self, WMView * view); W_ViewDelegate _SliderViewDelegate = { NULL, diff --git a/WINGs/wtextfield.c b/WINGs/wtextfield.c index 955db53..1b3baa5 100644 --- a/WINGs/wtextfield.c +++ b/WINGs/wtextfield.c @@ -96,7 +96,7 @@ static void paintTextField(TextField * tPtr); static void handleEvents(XEvent * event, void *data); static void handleTextFieldActionEvents(XEvent * event, void *data); -static void didResizeTextField(); +static void didResizeTextField(W_ViewDelegate * self, WMView * view); struct W_ViewDelegate _TextFieldViewDelegate = { NULL, diff --git a/WINGs/wwindow.c b/WINGs/wwindow.c index d14b46b..d3ad4aa 100644 --- a/WINGs/wwindow.c +++ b/WINGs/wwindow.c @@ -89,9 +89,9 @@ struct W_ViewDelegate _WindowViewDelegate = { static void destroyWindow(_Window * win); -static void handleEvents(); +static void handleEvents(XEvent * event, void *clientData); -static void realizeWindow(); +static void realizeWindow(WMWindow * win); static void realizeObserver(void *self, WMNotification * not) { -- 1.7.10.4 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.