Author: cazfi
Date: Wed Dec 17 19:26:37 2014
New Revision: 27329

URL: http://svn.gna.org/viewcvs/freeciv?rev=27329&view=rev
Log:
Set parameter list to 'void' for all sdl-client functions where it should be so.

See patch #5491

Modified:
    branches/S2_4/client/gui-sdl/gui_mouse.c
    branches/S2_4/client/gui-sdl/inteldlg.c
    branches/S2_4/client/gui-sdl/mapctrl.c
    branches/S2_4/client/gui-sdl/mapview.c
    branches/S2_4/client/gui-sdl/widget_core.c

Modified: branches/S2_4/client/gui-sdl/gui_mouse.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_4/client/gui-sdl/gui_mouse.c?rev=27329&r1=27328&r2=27329&view=diff
==============================================================================
--- branches/S2_4/client/gui-sdl/gui_mouse.c    (original)
+++ branches/S2_4/client/gui-sdl/gui_mouse.c    Wed Dec 17 19:26:37 2014
@@ -91,7 +91,8 @@
 /**************************************************************************
   ...
 **************************************************************************/
-void draw_mouse_cursor() {
+void draw_mouse_cursor(void)
+{
   int cursor_x = 0;
   int cursor_y = 0;
   static SDL_Rect area = {0, 0, 0, 0};

Modified: branches/S2_4/client/gui-sdl/inteldlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_4/client/gui-sdl/inteldlg.c?rev=27329&r1=27328&r2=27329&view=diff
==============================================================================
--- branches/S2_4/client/gui-sdl/inteldlg.c     (original)
+++ branches/S2_4/client/gui-sdl/inteldlg.c     Wed Dec 17 19:26:37 2014
@@ -61,7 +61,7 @@
 /****************************************************************
 ...
 *****************************************************************/
-void intel_dialog_init()
+void intel_dialog_init(void)
 {
   dialog_list = dialog_list_new();
 }
@@ -69,7 +69,7 @@
 /****************************************************************
 ...
 *****************************************************************/
-void intel_dialog_done()
+void intel_dialog_done(void)
 {
   dialog_list_destroy(dialog_list);
 }
@@ -192,7 +192,8 @@
 /**************************************************************************
   Popdown all intelligence dialogs
 **************************************************************************/
-void popdown_intel_dialogs() {
+void popdown_intel_dialogs(void)
+{
   dialog_list_iterate(dialog_list, pdialog) {
     popdown_intel_dialog(pdialog->pplayer);
   } dialog_list_iterate_end;

Modified: branches/S2_4/client/gui-sdl/mapctrl.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_4/client/gui-sdl/mapctrl.c?rev=27329&r1=27328&r2=27329&view=diff
==============================================================================
--- branches/S2_4/client/gui-sdl/mapctrl.c      (original)
+++ branches/S2_4/client/gui-sdl/mapctrl.c      Wed Dec 17 19:26:37 2014
@@ -1358,7 +1358,7 @@
                       area.y + area.h - pWidget->size.h - 2);
 }
 
-void popup_unitinfo_window() {
+void popup_unitinfo_window(void) {
   struct widget *pWidget, *pWindow;
   SDL_Surface *pIcon_theme = NULL;
   char buf[256];
@@ -1467,7 +1467,7 @@
   widget_redraw(pUnits_Info_Window);
 }
 
-void show_unitinfo_window_buttons()
+void show_unitinfo_window_buttons(void)
 {
   struct widget *pWidget = get_unit_info_window_widget();
     
@@ -1488,7 +1488,7 @@
   clear_wflag(pWidget, WF_HIDDEN);
 }
 
-void hide_unitinfo_window_buttons()
+void hide_unitinfo_window_buttons(void)
 {
   struct widget *pWidget = get_unit_info_window_widget();
     
@@ -1509,7 +1509,7 @@
   set_wflag(pWidget, WF_HIDDEN);
 }
   
-void disable_unitinfo_window_buttons()
+void disable_unitinfo_window_buttons(void)
 {
   struct widget *pWidget = get_unit_info_window_widget();
     
@@ -1526,7 +1526,7 @@
   set_wstate(pWidget, FC_WS_DISABLED);
 }
 
-void popdown_unitinfo_window()
+void popdown_unitinfo_window(void)
 {
   if (pUnitInfo_Dlg) {
     popdown_window_group_dialog(pUnitInfo_Dlg->pBeginWidgetList, 
pUnitInfo_Dlg->pEndWidgetList);
@@ -1535,7 +1535,8 @@
   }
 }
 
-void popup_minimap_window() {
+void popup_minimap_window(void)
+{
   struct widget *pWidget, *pWindow;
   SDL_Surface *pIcon_theme = NULL;
   SDL_Color black = {0, 0, 0, 255};
@@ -1687,7 +1688,7 @@
   widget_redraw(pMiniMap_Window);
 }
 
-void show_minimap_window_buttons()
+void show_minimap_window_buttons(void)
 {
   struct widget *pWidget = get_minimap_window_widget();
   
@@ -1726,7 +1727,7 @@
   clear_wflag(pWidget, WF_HIDDEN);
 }
 
-void hide_minimap_window_buttons()
+void hide_minimap_window_buttons(void)
 {
   struct widget *pWidget = get_minimap_window_widget();
   
@@ -1765,7 +1766,7 @@
   set_wflag(pWidget, WF_HIDDEN);
 }
 
-void redraw_minimap_window_buttons()
+void redraw_minimap_window_buttons(void)
 {
   struct widget *pWidget = get_minimap_window_widget();
   
@@ -1803,7 +1804,7 @@
   widget_redraw(pWidget);
 }
 
-void disable_minimap_window_buttons()
+void disable_minimap_window_buttons(void)
 {
   struct widget *pWidget = get_minimap_window_widget();
   
@@ -1834,7 +1835,7 @@
   #endif
 }
 
-void popdown_minimap_window()
+void popdown_minimap_window(void)
 {
   if (pMiniMap_Dlg) {
     popdown_window_group_dialog(pMiniMap_Dlg->pBeginWidgetList, 
pMiniMap_Dlg->pEndWidgetList);
@@ -1843,7 +1844,7 @@
   }
 }
 
-void show_game_page()
+void show_game_page(void)
 {
   struct widget *pWidget;
   SDL_Surface *pIcon_theme = NULL;
@@ -1903,7 +1904,7 @@
   enable_order_buttons();
 }
 
-void close_game_page()
+void close_game_page(void)
 {
   struct widget *pWidget;
 
@@ -1922,7 +1923,7 @@
   SDL_Client_Flags &= ~CF_MAP_UNIT_W_CREATED;
 }
 
-static void disable_minimap_widgets()
+static void disable_minimap_widgets(void)
 {
   struct widget *pBuf, *pEnd;
 
@@ -1967,7 +1968,7 @@
   redraw_group(pBuf, pEnd, TRUE);
 }
 
-static void disable_unitinfo_widgets()
+static void disable_unitinfo_widgets(void)
 {
   struct widget *pBuf = 
pUnits_Info_Window->private_data.adv_dlg->pBeginWidgetList;
   struct widget *pEnd = 
pUnits_Info_Window->private_data.adv_dlg->pEndWidgetList;
@@ -1989,7 +1990,7 @@
   }
 }
 
-static void enable_minimap_widgets()
+static void enable_minimap_widgets(void)
 {
   struct widget *pBuf, *pEnd;
 
@@ -2037,7 +2038,7 @@
   }
 }
 
-static void enable_unitinfo_widgets()
+static void enable_unitinfo_widgets(void)
 {
   struct widget *pBuf, *pEnd;
 

Modified: branches/S2_4/client/gui-sdl/mapview.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_4/client/gui-sdl/mapview.c?rev=27329&r1=27328&r2=27329&view=diff
==============================================================================
--- branches/S2_4/client/gui-sdl/mapview.c      (original)
+++ branches/S2_4/client/gui-sdl/mapview.c      Wed Dec 17 19:26:37 2014
@@ -81,7 +81,7 @@
 
 /* ================================================================ */
 
-void update_map_canvas_scrollbars_size()
+void update_map_canvas_scrollbars_size(void)
 {
   /* No scrollbars */
 }

Modified: branches/S2_4/client/gui-sdl/widget_core.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_4/client/gui-sdl/widget_core.c?rev=27329&r1=27328&r2=27329&view=diff
==============================================================================
--- branches/S2_4/client/gui-sdl/widget_core.c  (original)
+++ branches/S2_4/client/gui-sdl/widget_core.c  Wed Dec 17 19:26:37 2014
@@ -246,7 +246,7 @@
 /**************************************************************************
   ...
 **************************************************************************/
-struct widget *widget_new()
+struct widget *widget_new(void)
 {
   struct widget *pWidget = fc_calloc(1, sizeof(struct widget));
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to