jmb did soem corrections to yestardays run, so I repeated it this morning http://www.kyllikki.org/scan-build-2011-05-17-1.tar.gz
Log was: scan-build: 'clang' executable not found in '/home/vince/clang/llvm/tools/clang/tools/scan-build/bin'. scan-build: Using 'clang' from path: /home/vince/clang/build/Debug+Asserts/bin//clang M.CONFIG: JPEG (libjpeg) enabled (NETSURF_USE_JPEG := YES) M.CONFIG: JNG/MNG/PNG (libmng) disabled (NETSURF_USE_MNG := NO) M.CONFIG: PDF export (haru) disabled (NETSURF_USE_HARU_PDF := NO) M.CONFIG: glibc internal iconv enabled (NETSURF_USE_LIBICONV_PLUG := YES) M.CONFIG: SVG (librsvg-2.0) auto-enabled (NETSURF_USE_RSVG := AUTO) M.CONFIG: SVG (libsvgtiny) disabled (NETSURF_USE_NSSVG := NO) M.CONFIG: Sprite (librosprite) auto-disabled (NETSURF_USE_ROSPRITE := AUTO) M.CONFIG: BMP (libnsbmp) enabled (NETSURF_USE_BMP := YES) M.CONFIG: GIF (libnsgif) enabled (NETSURF_USE_GIF := YES) M.CONFIG: PNG (libpng) enabled (NETSURF_USE_PNG := YES) M.CONFIG: WebP (libwebp) disabled (NETSURF_USE_WEBP := NO) MKDIR: build-Linux-gtk MKDIR: build-Linux-gtk/deps COMPILE: utils/utils.c COMPILE: utils/utf8.c COMPILE: utils/useragent.c COMPILE: utils/url.c COMPILE: utils/talloc.c COMPILE: utils/messages.c COMPILE: utils/log.c COMPILE: utils/locale.c COMPILE: utils/http.c COMPILE: utils/hashtable.c COMPILE: utils/filepath.c COMPILE: utils/filename.c COMPILE: utils/container.c COMPILE: utils/base64.c COMPILE: render/textplain.c COMPILE: render/table.c render/table.c:419:4: warning: Value stored to 'a_src' is never read a_src = b_src; ^ ~~~~~ render/table.c:365:4: warning: Value stored to 'a_src' is never read a_src = b_src; ^ ~~~~~ render/table.c:602:4: warning: Value stored to 'a_src' is never read a_src = b_src; ^ ~~~~~ render/table.c:646:23: warning: Access to field 'parent' results in a dereference of a null pointer (loaded from variable 'row') struct box *group = row->parent; ^~~ render/table.c:687:4: warning: Value stored to 'a_src' is never read a_src = b_src; ^ ~~~~~ 5 warnings generated. COMPILE: render/list.c COMPILE: render/layout.c render/layout.c:660:9: warning: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'box') box = box->next; ^~~ render/layout.c:3950:41: warning: Division by zero extra = 1 + (cell->min_width - min) / ^ 2 warnings generated. COMPILE: render/imagemap.c COMPILE: render/hubbub_binding.c render/hubbub_binding.c:471:15: warning: Assigned value is always the same as the existing value n->_private = (void *) (++count); ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~ render/hubbub_binding.c:476:15: warning: Assigned value is always the same as the existing value n->_private = (void *) (++count); ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~ render/hubbub_binding.c:492:15: warning: Assigned value is always the same as the existing value n->_private = (void *) (--count); ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~ render/hubbub_binding.c:499:15: warning: Assigned value is always the same as the existing value n->_private = (void *) (--count); ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~ 4 warnings generated. COMPILE: render/html_redraw.c COMPILE: render/html_interaction.c render/html_interaction.c:248:4: warning: Value stored to 'overflow' is never read overflow = css_computed_overflow(box->style); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. COMPILE: render/html.c COMPILE: render/form.c render/form.c:913:3: warning: Value stored to 'scroll' is never read scroll = 0; ^ ~ render/form.c:928:6: warning: Value stored to 'scroll' is never read scroll = (i + 1) * ^ ~~~~~~~~~ 2 warnings generated. COMPILE: render/font.c COMPILE: render/box_normalise.c COMPILE: render/box_construct.c COMPILE: render/box.c render/box.c:128:41: warning: The left operand to '|' is always 0 box->flags = style_owned ? (box->flags | STYLE_OWNED) : box->flags; ~~~~~~~~~~ ^ 1 warning generated. COMPILE: image/webp.c COMPILE: image/svg.c COMPILE: image/rsvg.c COMPILE: image/png.c COMPILE: image/nssprite.c COMPILE: image/mng.c COMPILE: image/jpeg.c COMPILE: image/image.c COMPILE: image/ico.c COMPILE: image/gif.c COMPILE: image/bmp.c COMPILE: gtk/window.c COMPILE: gtk/treeview.c COMPILE: gtk/toolbar.c gtk/toolbar.c:1058:2: warning: Value stored to 'ii' is never read ii = BACK_BUTTON; ^ ~~~~~~~~~~~ gtk/toolbar.c:1057:2: warning: Value stored to 'i' is never read i = BACK_BUTTON; ^ ~~~~~~~~~~~ 2 warnings generated. COMPILE: gtk/thumbnail.c COMPILE: gtk/throbber.c COMPILE: gtk/theme.c COMPILE: gtk/tabs.c COMPILE: gtk/system_colour.c COMPILE: gtk/sexy_icon_entry.c gtk/sexy_icon_entry.c:105:2: warning: Value stored to 'entry_class' is never read entry_class = GTK_ENTRY_CLASS(klass); ^ ~~~~~~~~~~~~~~~~~~~~~~ gtk/sexy_icon_entry.c:409:2: warning: Value stored to 'gtkentry' is never read gtkentry = GTK_ENTRY(widget); ^ ~~~~~~~~~~~~~~~~~ gtk/sexy_icon_entry.c:471:10: warning: Access to field 'allocation' results in a dereference of a null pointer (loaded from variable 'widget') widget->allocation = *allocation; ~~~~~~ ^ gtk/sexy_icon_entry.c:643:24: warning: Access to field 'style' results in a dereference of a null pointer (loaded from variable 'widget') gtk_paint_flat_box(widget->style, icon_info->window, ^~~~~~ 4 warnings generated. COMPILE: gtk/selection.c COMPILE: gtk/search.c COMPILE: gtk/schedule.c COMPILE: gtk/scaffolding.c COMPILE: gtk/save.c COMPILE: gtk/print.c COMPILE: gtk/plotters.c COMPILE: gtk/menu.c COMPILE: gtk/login.c COMPILE: gtk/hotlist.c COMPILE: gtk/history.c COMPILE: gtk/gui.c gtk/gui.c:438:2: warning: Value stored to 'bw' is never read bw = browser_window_create(addr, 0, 0, true, false); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. COMPILE: gtk/font_pango.c gtk/font_pango.c:271:2: warning: Value stored to 'context' is never read context = nsfont_pango_context; ^ ~~~~~~~~~~~~~~~~~~~~ 1 warning generated. COMPILE: gtk/filetype.c COMPILE: gtk/download.c COMPILE: gtk/dialogs/source.c COMPILE: gtk/dialogs/options.c COMPILE: gtk/dialogs/about.c COMPILE: gtk/cookies.c COMPILE: gtk/completion.c COMPILE: gtk/compat.c COMPILE: gtk/bitmap.c COMPILE: desktop/version.c COMPILE: desktop/tree_url_node.c COMPILE: desktop/tree.c desktop/tree.c:469:2: warning: Value stored to 'width' is never read width = node->box.width; ^ ~~~~~~~~~~~~~~~ desktop/tree.c:1064:7: warning: Access to field 'flags' results in a dereference of a null pointer (loaded from variable 'tree') if ((tree->flags & TREE_DELETE_EMPTY_DIRS) && parent != NULL && ^~~~ 2 warnings generated. COMPILE: desktop/thumbnail.c COMPILE: desktop/textinput.c desktop/textinput.c:856:6: warning: The left operand to '-=' is always 0 dx -= text_box->x; ~~ ^ desktop/textinput.c:849:6: warning: Assigned value is always the same as the existing value dx = text_box->x; ~~ ^ ~~~~~~~~~~~ 2 warnings generated. COMPILE: desktop/textarea.c COMPILE: desktop/sslcert.c COMPILE: desktop/selection.c COMPILE: desktop/searchweb.c COMPILE: desktop/search.c desktop/search.c:477:7: warning: Assigned value is garbage or undefined ss = context[top].ss; ^ ~~~~~~~~~~~~~~~ 1 warning generated. COMPILE: desktop/scrollbar.c desktop/scrollbar.c:220:3: warning: Value stored to 'well_length' is never read well_length *= scale; ^ ~~~~~ 1 warning generated. COMPILE: desktop/save_text.c COMPILE: desktop/save_pdf/pdf_plotters.c COMPILE: desktop/save_pdf/font_haru.c COMPILE: desktop/save_complete.c COMPILE: desktop/print.c COMPILE: desktop/plot_style.c COMPILE: desktop/options.c COMPILE: desktop/netsurf.c COMPILE: desktop/mouse.c COMPILE: desktop/knockout.c COMPILE: desktop/hotlist.c COMPILE: desktop/history_global_core.c desktop/history_global_core.c:158:2: warning: Value stored to 'node' is never read node = tree_create_URL_node_shared(global_history_tree, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. COMPILE: desktop/history_core.c COMPILE: desktop/frames.c COMPILE: desktop/download.c COMPILE: desktop/cookies.c COMPILE: desktop/browser.c COMPILE: css/utils.c COMPILE: css/select.c COMPILE: css/internal.c COMPILE: css/dump.c css/dump.c:598:2: warning: Value stored to 'val' is never read val = css_computed_counter_reset(style, &counter); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ css/dump.c:578:2: warning: Value stored to 'val' is never read val = css_computed_counter_increment(style, &counter); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. COMPILE: css/css.c COMPILE: content/urldb.c COMPILE: content/llcache.c content/llcache.c:1241:15: warning: Access to field 'next' results in a dereference of a null pointer (loaded from field 'prev') user->prev->next = user->next; ~~~~ ^ 1 warning generated. COMPILE: content/hlcache.c COMPILE: content/fetchers/resource.c COMPILE: content/fetchers/file.c COMPILE: content/fetchers/data.c COMPILE: content/fetchers/curl.c TESTMENT: utils/testament.h COMPILE: content/fetchers/about.c COMPILE: content/fetch.c COMPILE: content/dirlist.c COMPILE: content/content_factory.c COMPILE: content/content.c M.CONFIG: JPEG (libjpeg) enabled (NETSURF_USE_JPEG := YES) M.CONFIG: JNG/MNG/PNG (libmng) disabled (NETSURF_USE_MNG := NO) M.CONFIG: PDF export (haru) disabled (NETSURF_USE_HARU_PDF := NO) M.CONFIG: glibc internal iconv enabled (NETSURF_USE_LIBICONV_PLUG := YES) M.CONFIG: SVG (librsvg-2.0) auto-enabled (NETSURF_USE_RSVG := AUTO) M.CONFIG: SVG (libsvgtiny) disabled (NETSURF_USE_NSSVG := NO) M.CONFIG: Sprite (librosprite) auto-disabled (NETSURF_USE_ROSPRITE := AUTO) M.CONFIG: BMP (libnsbmp) enabled (NETSURF_USE_BMP := YES) M.CONFIG: GIF (libnsgif) enabled (NETSURF_USE_GIF := YES) M.CONFIG: PNG (libpng) enabled (NETSURF_USE_PNG := YES) M.CONFIG: WebP (libwebp) disabled (NETSURF_USE_WEBP := NO) TESTMENT: unchanged LINK: nsgtk scan-build: 33 bugs found. scan-build: Run 'scan-view /tmp/scan-build-2011-05-17-1' to examine bug reports.