summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-01-13 20:29:24 +0000
committerJames Bursa <james@netsurf-browser.org>2005-01-13 20:29:24 +0000
commita76404dfd076925eebeb8166f588e0d5e7a9fdd3 (patch)
treedef5a2c0dfcfc059c4b13ee8ebe30fc2507fa5d9 /render
parent2f19e15e33b57342ba98d81711650387e461b41b (diff)
downloadnetsurf-a76404dfd076925eebeb8166f588e0d5e7a9fdd3.tar.gz
netsurf-a76404dfd076925eebeb8166f588e0d5e7a9fdd3.tar.bz2
[project @ 2005-01-13 20:28:50 by bursa]
Fix some compilation warnings in the debug build. Update nsgtk_plot_rectangle() with the new parameters. svn path=/import/netsurf/; revision=1447
Diffstat (limited to 'render')
-rw-r--r--render/box.c1
-rw-r--r--render/layout.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/render/box.c b/render/box.c
index bf055eac4..4d57c9f8c 100644
--- a/render/box.c
+++ b/render/box.c
@@ -11,6 +11,7 @@
* Conversion of XML tree to box tree (implementation).
*/
+#define _GNU_SOURCE /* for strndup */
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
diff --git a/render/layout.c b/render/layout.c
index c1d36e1ab..5b5a1453c 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -14,6 +14,7 @@
* precalculation of minimum / maximum box widths.
*/
+#define _GNU_SOURCE /* for strndup */
#include <alloca.h>
#include <assert.h>
#include <ctype.h>
@@ -1508,7 +1509,8 @@ bool layout_table(struct box *table, int available_width,
else
excess_y[i] = 0;
if (row_span_cell[i] != 0)
- row_span_cell[i]->padding[BOTTOM] += row_height +
+ row_span_cell[i]->padding[BOTTOM] +=
+ row_height +
border_spacing_v;
}