1. 07 Jan, 2011 9 commits
  2. 06 Jan, 2011 5 commits
  3. 04 Jan, 2011 4 commits
  4. 01 Jan, 2011 9 commits
  5. 23 Dec, 2010 4 commits
  6. 16 Dec, 2010 1 commit
    • Rusty Russell's avatar
      typesafe_cb: Fix warnings with gcc-4.5: · 6535bdee
      Rusty Russell authored
      Test compiled with warnings:
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:/home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c: In function ‘main’:
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:19:2: warning: taking address of expression of type ‘void’
      6535bdee
  7. 13 Dec, 2010 4 commits
  8. 08 Dec, 2010 4 commits
    • Rusty Russell's avatar
      rbtree: remove unused variable in tests. · 73cc6ce4
      Rusty Russell authored
      73cc6ce4
    • Ronnie Sahlberg's avatar
      rb_tree: fix trbt_delete · 90768177
      Ronnie Sahlberg authored
      trbt_delete32() was broken and caused SEGV as soon as you tried to
      delete an object from a tree.
      
      Rework trbt_delete32() to instead just call talloc_free() instread of trying
      to call delete_node() directly.
      This makes the "from_destructor" argument to delete_node() redundant
      so that parameter is removed too.
      Signed-off-by: default avatarRonnie Sahlberg <sahlberg@lenovo-laptop.(none)>
      90768177
    • Rusty Russell's avatar
      configurator: warnings count as failures too. · 2cae94de
      Rusty Russell authored
      Unfortunately, gcc only warns if it sees an unknown attribute (in this case, gcc 4.1 vs "cold").
      2cae94de
    • Rusty Russell's avatar
      ccanlint: fix compile on x86-64 · c102d5ec
      Rusty Russell authored
      cc -g -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -I. -MD -Werror   -c -o tools/ccanlint/tests/examples_run.o tools/ccanlint/tests/examples_run.c
      cc1: warnings being treated as errors
      tools/ccanlint/tests/examples_run.c: In function ‘scan_forv’:
      tools/ccanlint/tests/examples_run.c:37: warning: passing argument 2 of ‘__builtin_va_copy’ discards qualifiers from pointer target type
      tools/ccanlint/tests/examples_run.c:43: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type
      tools/ccanlint/tests/examples_run.c:52: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type
      tools/ccanlint/tests/examples_run.c:60: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type
      tools/ccanlint/tests/examples_run.c: In function ‘scan_for’:
      tools/ccanlint/tests/examples_run.c:78: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type
      make: *** [tools/ccanlint/tests/examples_run.o] Error 1
      
      It really doesn't like constifying a va_arg, so remove the const declaration.
      c102d5ec