Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler warnings #167

Merged
merged 1 commit into from
Jul 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion fvwm/add_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ static void CaptureOneWindow(
Window keep_on_top_win, Window parent_win, Bool is_recapture)
{
Window w;
struct monitor *m = (fw && fw->m) ? fw->m : monitor_get_current();
unsigned long data[1];
initial_window_options_t win_opts;
evh_args_t ea;
Expand Down
1 change: 0 additions & 1 deletion fvwm/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -2444,7 +2444,6 @@ void HandleFocusIn(const evh_args_t *ea)
static Window last_focus_fw = None;
static Bool was_nothing_ever_focused = True;
FvwmWindow *fw = ea->exc->w.fw;
struct monitor *mon = monitor_get_current();

Scr.focus_in_pending_window = NULL;
/* This is a hack to make the PointerKey command work */
Expand Down
7 changes: 4 additions & 3 deletions modules/FvwmPager/FvwmPager.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Bool do_ignore_next_button_release = False;
Bool error_occured = False;
Bool Swallowed = False;

static void extract_monitor_config(struct fpmonitor *, char *);
static void SetDeskLabel(struct fpmonitor *, int desk, const char *label);
static RETSIGTYPE TerminateHandler(int);
void ExitPager(void);
Expand Down Expand Up @@ -1805,7 +1806,7 @@ void ParseOptions(void)
char *token;
char *next;
Bool MoveThresholdSetForModule = False;
struct fpmonitor *m, *m2;
struct fpmonitor *m = NULL, *m2 = NULL;

arg1 = arg2 = NULL;

Expand Down Expand Up @@ -1874,7 +1875,7 @@ void ParseOptions(void)
TAILQ_FOREACH(m2, &fp_monitor_q, entry) {
updated = 0;
if (strcmp(m2->name, mname) == 0) {
extract_monitor_config(m2, next);
extract_monitor_config(m2, next);
updated = 1;
}
}
Expand All @@ -1885,7 +1886,7 @@ void ParseOptions(void)
m = fxcalloc(1, sizeof(*m));

m->name = fxstrdup(mname);
extract_monitor_config(m, next);
extract_monitor_config(m, next);
TAILQ_INSERT_TAIL(&fp_monitor_q, m, entry);
continue;
}
Expand Down
1 change: 0 additions & 1 deletion modules/FvwmPager/FvwmPager.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ RETSIGTYPE DeadPipe(int nonsense);
void process_message(FvwmPacket*);
void ParseOptions(void);

static void extract_monitor_config(struct fpmonitor *, char *);
void list_add(unsigned long *body);
void list_configure(unsigned long *body);
void list_config_info(unsigned long *body);
Expand Down