1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 11:02:48 -05:00

Unix makefile now uses -O2, which massively cuts down key exchange

time. This gives rise to a whole bunch of spare warnings, one or two
of which might have been actual bugs; now all resolved.

[originally from svn r3134]
This commit is contained in:
Simon Tatham
2003-04-23 13:48:09 +00:00
parent dd055ce280
commit 041dcfd83d
8 changed files with 68 additions and 61 deletions

View File

@ -489,6 +489,8 @@ int dlg_listbox_index(union control *ctrl, void *dlg)
if (uc->menu)
activeitem = gtk_menu_get_active(GTK_MENU(uc->menu));
else
activeitem = NULL; /* unnecessarily placate gcc */
children = gtk_container_children(GTK_CONTAINER(uc->menu ? uc->menu :
uc->list));

View File

@ -287,9 +287,9 @@ void panels_add(Panels *panels, GtkWidget *child)
void panels_switch_to(Panels *panels, GtkWidget *target)
{
GtkWidget *child;
GtkWidget *child = NULL;
GList *children;
gboolean changed;
gboolean changed = FALSE;
g_return_if_fail(panels != NULL);
g_return_if_fail(IS_PANELS(panels));

View File

@ -442,6 +442,7 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
/* By default, nothing is generated. */
end = start = 0;
special = FALSE;
/*
* If Alt is being released after typing an Alt+numberpad
@ -2669,7 +2670,7 @@ void dup_session_menuitem(GtkMenuItem *item, gpointer gdata)
fork_and_exec_self(inst, pipefd[1], option, NULL);
close(pipefd[0]);
i = 0;
i = ret = 0;
while (i < size && (ret = write(pipefd[1], data + i, size - i)) > 0)
i += ret;
if (ret < 0)
@ -2689,7 +2690,7 @@ int read_dupsession_data(struct gui_data *inst, Config *cfg, char *arg)
}
data = snewn(size, char);
i = 0;
i = ret = 0;
while (i < size && (ret = read(fd, data + i, size - i)) > 0)
i += ret;
if (ret < 0) {

View File

@ -13,6 +13,7 @@ void platform_get_x11_auth(char *display, int *protocol,
char *command;
int maxsize = *datalen;
char *localbuf;
int proto = -1;
/*
* Normally we should run `xauth list DISPLAYNAME'. However,
@ -36,7 +37,7 @@ void platform_get_x11_auth(char *display, int *protocol,
* Read a line from stdin, and attempt to parse it into a
* display name (ignored), auth protocol, and auth string.
*/
int c, i, hexdigit, proto;
int c, i, hexdigit;
char protoname[64];
/* Skip the display name. */