Patch from Jens Granseuer to fix build with gcc 2.95. #322622.
2006-01-02 Elijah Newren <newren@gmail.com> Patch from Jens Granseuer to fix build with gcc 2.95. #322622. * src/boxes.c (meta_rectangle_region_to_string, meta_rectangle_edge_list_to_string, fix_up_edges): * src/constraints.c (meta_window_constrain, setup_constraint_info, place_window_if_needed, constrain_maximization, constrain_fullscreen, constrain_size_increments, constrain_size_limits, constrain_aspect_ratio, do_screen_and_xinerama_relative_constrai, constrain_to_single_xinerama, constrain_fully_onscreen, constrain_partially_onscreen): * src/edge-resistance.c (find_nearest_position, apply_edge_resistance, apply_edge_resistance_to_each_side): * src/testboxes.c (test_clamping_to_region, test_clipping_to_region, test_shoving_into_region): * src/window.c (meta_window_new_with_attrs, meta_window_apply_session_info, meta_window_resize, meta_window_resize_with_gravity, meta_window_configure_request): Remove C99 style variable initiailization
This commit is contained in:

committed by
Elijah Newren

parent
d530c3e405
commit
ebd0c7e9a6
13
src/boxes.c
13
src/boxes.c
@@ -55,11 +55,12 @@ meta_rectangle_region_to_string (GList *region,
|
||||
*/
|
||||
char rect_string[RECT_LENGTH];
|
||||
|
||||
GList *tmp = region;
|
||||
char *cur = output;
|
||||
|
||||
if (region == NULL)
|
||||
snprintf (output, 10, "(EMPTY)");
|
||||
|
||||
char *cur = output;
|
||||
GList *tmp = region;
|
||||
while (tmp)
|
||||
{
|
||||
MetaRectangle *rect = tmp->data;
|
||||
@@ -107,11 +108,12 @@ meta_rectangle_edge_list_to_string (GList *edge_list,
|
||||
*/
|
||||
char rect_string[EDGE_LENGTH];
|
||||
|
||||
char *cur = output;
|
||||
GList *tmp = edge_list;
|
||||
|
||||
if (edge_list == NULL)
|
||||
snprintf (output, 10, "(EMPTY)");
|
||||
|
||||
char *cur = output;
|
||||
GList *tmp = edge_list;
|
||||
while (tmp)
|
||||
{
|
||||
MetaEdge *edge = tmp->data;
|
||||
@@ -1453,11 +1455,12 @@ fix_up_edges (MetaRectangle *strut, MetaEdge *edge,
|
||||
/* If this is the edge that overlaps, then we need to split it */
|
||||
if (edges_overlap (cur, &overlap))
|
||||
{
|
||||
GList *delete_me = tmp;
|
||||
|
||||
/* Split this edge into some new ones */
|
||||
*strut_edges = split_edge (*strut_edges, cur, &overlap);
|
||||
|
||||
/* Delete the old one */
|
||||
GList *delete_me = tmp;
|
||||
tmp = tmp->next;
|
||||
g_free (cur);
|
||||
*strut_edges = g_list_delete_link (*strut_edges, delete_me);
|
||||
|
Reference in New Issue
Block a user