summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2019-02-15 19:20:25 +0100
committerBardur Arantsson <bardur@scientician.net>2019-02-15 19:20:25 +0100
commit6bf1655941284349e36141daedcd1d1c2b0e6702 (patch)
tree3243193934d657155d96c83a0fc86e1837a166da
parentd61b285a1e38346c36259adb64d5b7309823b041 (diff)
Apply clang-tidy modernize-redundant-void-arg fix
-rw-r--r--src/main-gcu.cc8
-rw-r--r--src/main-gtk2.cc10
-rw-r--r--src/main-sdl.cc20
-rw-r--r--src/main-x11.cc4
-rw-r--r--src/z-term.cc2
5 files changed, 22 insertions, 22 deletions
diff --git a/src/main-gcu.cc b/src/main-gcu.cc
index 0b509070..d518e30c 100644
--- a/src/main-gcu.cc
+++ b/src/main-gcu.cc
@@ -242,7 +242,7 @@ static int colortable[16];
/*
* Place the "keymap" into its "normal" state
*/
-static void keymap_norm(void)
+static void keymap_norm()
{
#ifdef USE_TPOSIX
@@ -275,7 +275,7 @@ static void keymap_norm(void)
/*
* Place the "keymap" into the "game" state
*/
-static void keymap_game(void)
+static void keymap_game()
{
#ifdef USE_TPOSIX
@@ -308,7 +308,7 @@ static void keymap_game(void)
/*
* Save the normal keymap
*/
-static void keymap_norm_prepare(void)
+static void keymap_norm_prepare()
{
#ifdef USE_TPOSIX
@@ -341,7 +341,7 @@ static void keymap_norm_prepare(void)
/*
* Save the keymaps (normal and game)
*/
-static void keymap_game_prepare(void)
+static void keymap_game_prepare()
{
#ifdef USE_TPOSIX
diff --git a/src/main-gtk2.cc b/src/main-gtk2.cc
index f6ae81a8..ee1aa260 100644
--- a/src/main-gtk2.cc
+++ b/src/main-gtk2.cc
@@ -216,7 +216,7 @@ static const char *get_default_font(int term)
* clever fashion. Ditto for the tile scaling code and the BMP loader
* below.
*/
-static void init_colours(void)
+static void init_colours()
{
int i;
@@ -435,7 +435,7 @@ static void CheckEvent(bool wait)
/*
* Process all pending events (without blocking)
*/
-static void DrainEvents(void)
+static void DrainEvents()
{
while (gtk_events_pending())
gtk_main_iteration();
@@ -636,7 +636,7 @@ static void term_data_set_backing_store(term_data *td)
/*
* Save game only when it's safe to do so
*/
-static void save_game_gtk(void)
+static void save_game_gtk()
{
/* We have nothing to save, yet */
if (!game_in_progress || !character_generated) return;
@@ -1390,7 +1390,7 @@ static GtkItemFactoryEntry main_menu_items[] =
* XXX XXX Fill those NULL's in the menu definition with
* angband_term_name[] strings
*/
-static void setup_menu_paths(void)
+static void setup_menu_paths()
{
int i;
int nmenu_items = sizeof(main_menu_items) / sizeof(main_menu_items[0]);
@@ -1446,7 +1446,7 @@ static void setup_menu_paths(void)
/*
* XXX XXX Free strings allocated by setup_menu_paths()
*/
-static void free_menu_paths(void)
+static void free_menu_paths()
{
int i;
int nmenu_items = sizeof(main_menu_items) / sizeof(main_menu_items[0]);
diff --git a/src/main-sdl.cc b/src/main-sdl.cc
index ff7c6b7b..6f331550 100644
--- a/src/main-sdl.cc
+++ b/src/main-sdl.cc
@@ -264,10 +264,10 @@ whenever a rect needs updated */
*************************************************/
/* function prototype */
-void dumpWindowSettings(void);
+void dumpWindowSettings();
/* SDL Quitting function... declare a few functions first.*/
-void killFontAndAlphabet(void);
+void killFontAndAlphabet();
static void sdl_quit(const char *string)
{
printf("sdl_quit called.\n");
@@ -298,7 +298,7 @@ SDL_Surface *createSurface(int width, int height);
/* killFontAndAlphabet will effectively de-initialize the font system;
it does this by closing the font and destroying any pre-rendered
text in memory */
-void killFontAndAlphabet(void)
+void killFontAndAlphabet()
{
int i;
/* need to close a font and free all of its corresponding pre-rendered
@@ -390,8 +390,8 @@ while (*n != '\0') { \
}
/* function prototype */
-void manipulationMode(void);
-void redrawAllTerminals(void);
+void manipulationMode();
+void redrawAllTerminals();
/* This is the main event handling routine that will be called
whenever an event is pulled off of the queue (in Term_xtra_sdl())*/
void handleEvent(SDL_Event *event)
@@ -1057,7 +1057,7 @@ borders */
td->rect.h = (td->rows)*td->tile_height + td->cushion_y_top \
+ td->cushion_y_bot + 2*td->border_thick
-void recompose(void);
+void recompose();
/* Resize the active terminal with new width and height.
Note that his involves a complicated sequence of events...
@@ -1260,7 +1260,7 @@ int cycleTerminal(int current)
/* This routine will simply re-blit all of the surfaces onto the main screen,
respecting the current term_order */
-void recompose(void)
+void recompose()
{
int i = arg_console_count;
/* do a complete screen wipe */
@@ -1283,7 +1283,7 @@ then cycle through all terminals, performing a Term_redraw()
on each and every term that is being used (according to
arg_term_count that is). The terminals will be redrawn
last-to-first, so that the main is over top of everything */
-void redrawAllTerminals(void)
+void redrawAllTerminals()
{
int i = arg_console_count;
DB("Total redraw");
@@ -1346,7 +1346,7 @@ being manipulated. The following keypresses are accepted:
-Escape: quits manipulation mode, performing one final
redraw to take into account all changes.
*/
-void manipulationMode(void)
+void manipulationMode()
{
term_data *td;
SDL_Event event;
@@ -1696,7 +1696,7 @@ static term *term_data_init(term_data *td, int i)
/* dumpWindowSettings is responsible for exporting all current
values of the window positions, etc. to the screen, so that
the user can see what the final values were after tweaking */
-void dumpWindowSettings(void)
+void dumpWindowSettings()
{
char name[80];
char value[8];
diff --git a/src/main-x11.cc b/src/main-x11.cc
index e20101d4..20fcd290 100644
--- a/src/main-x11.cc
+++ b/src/main-x11.cc
@@ -771,7 +771,7 @@ static errr Infowin_set_mask(long mask)
/*
* Request that Infowin be mapped
*/
-static errr Infowin_map(void)
+static errr Infowin_map()
{
/* Execute the Mapping */
XMapWindow(Metadpy->dpy, Infowin->win);
@@ -784,7 +784,7 @@ static errr Infowin_map(void)
/*
* Request that Infowin be raised
*/
-static errr Infowin_raise(void)
+static errr Infowin_raise()
{
/* Raise towards visibility */
XRaiseWindow(Metadpy->dpy, Infowin->win);
diff --git a/src/z-term.cc b/src/z-term.cc
index f672e36e..4bef420b 100644
--- a/src/z-term.cc
+++ b/src/z-term.cc
@@ -1374,7 +1374,7 @@ void Term_erase(int x, int y, int n)
*
* Note the use of the special "total_erase" code
*/
-void Term_clear(void)
+void Term_clear()
{
int x, y;