diff options
author | Graham Gower <graham.gower@gmail.com> | 2009-08-25 21:29:35 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2009-08-31 15:51:52 -0700 |
commit | 5e51870a3ebcba57fb47fd221b7d79594e9d3b73 (patch) | |
tree | d5bf66a068be9ad2bc20d73734572189b1bb9374 /recipes/netsurf/files/hubbub-uninitialised.patch | |
parent | 3c1aac7f71956dfb5acd9a76e9d5210ff5e2b189 (diff) |
netsurf: fixes for GCC-4.4, from netsurf svn.
Netsurf appears to be statically linked with these libraries, so I
bumped its PR too.
Signed-off-by: Graham Gower <graham.gower@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/netsurf/files/hubbub-uninitialised.patch')
-rw-r--r-- | recipes/netsurf/files/hubbub-uninitialised.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/netsurf/files/hubbub-uninitialised.patch b/recipes/netsurf/files/hubbub-uninitialised.patch new file mode 100644 index 0000000000..4f87120c31 --- /dev/null +++ b/recipes/netsurf/files/hubbub-uninitialised.patch @@ -0,0 +1,35 @@ +http://source.netsurf-browser.org/?view=rev&revision=7398 +Initialise variables to stop GCC 4.4 complaining (credit: Jeroen Habraken) + +--- hubbub/src/tokeniser/tokeniser.c 2009/04/06 15:22:16 7052 ++++ hubbub/src/tokeniser/tokeniser.c 2009/05/05 17:18:41 7398 +@@ -787,7 +787,7 @@ + + 1); + } else { + parserutils_error error; +- const uint8_t *cptr; ++ const uint8_t *cptr = NULL; + error = parserutils_inputstream_peek( + tokeniser->input, + tokeniser->context.pending, +@@ -1590,8 +1590,8 @@ + tokeniser->context.match_entity.length + + 1; + } else { +- size_t len; +- const uint8_t *cptr; ++ size_t len = 0; ++ const uint8_t *cptr = NULL; + parserutils_error error; + + error = parserutils_inputstream_peek( +@@ -3137,7 +3137,7 @@ + { + hubbub_token token; + size_t len; +- const uint8_t *cptr; ++ const uint8_t *cptr = NULL; + parserutils_error error; + + /* Calling this with nothing to output is a probable bug */ + |