From: Pierre-Marc Fournier Date: Tue, 27 Oct 2009 22:33:15 +0000 (-0400) Subject: always initialize statically the .location field of struct marker to NULL X-Git-Tag: v0.1~72 X-Git-Url: http://git.liburcu.org/?p=ust.git;a=commitdiff_plain;h=12bb5a5f4eb614c4be28e862b9d78603b4626e46 always initialize statically the .location field of struct marker to NULL Constructors later write the real location value. --- diff --git a/libust/marker.h b/libust/marker.h index 4c6a703..da3d30c 100644 --- a/libust/marker.h +++ b/libust/marker.h @@ -94,11 +94,10 @@ struct marker { sizeof(#name)], \ 0, 0, 0, 0, marker_probe_cb, \ { __mark_empty_function, NULL}, \ - NULL, tp_name_str, tp_cb }; \ + NULL, tp_name_str, tp_cb, NULL }; \ asm (".section __marker_addr,\"aw\",@progbits\n\t" \ _ASM_PTR "%c[marker_struct], (1f)\n\t" \ ".previous\n\t" \ - "\n\t" \ "1:\n\t" \ :: [marker_struct] "i" (&__mark_##channel##_##name));\ save_registers(®s)