From d556e7d7f48a449b4be6e8174428219ae71a30b2 Mon Sep 17 00:00:00 2001 From: wcohen Date: Wed, 5 Apr 2006 17:16:00 +0000 Subject: Correct the initialization to work with gcc 4.1. --- runtime/ChangeLog | 4 ++++ runtime/string.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime/ChangeLog b/runtime/ChangeLog index e9193caf..acae69b3 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,7 @@ +2006-04-05 Will Cohen + + * string.h (__stp_stdout): Correct initialization. + 2006-03-30 Martin Hunt * string.c (_stp_string_cat_cstr): Use memcpy() instead of strncpy(). diff --git a/runtime/string.h b/runtime/string.h index e4268197..3ebf555c 100644 --- a/runtime/string.h +++ b/runtime/string.h @@ -29,7 +29,7 @@ static struct string _stp_string[STP_NUM_STRINGS][NR_CPUS]; typedef struct string *String; /* set up a special stdout string */ -static struct string __stp_stdout = {0}; +static struct string __stp_stdout = {.len = 0}; String _stp_stdout = &__stp_stdout; void _stp_vsprintf (String str, const char *fmt, va_list args); -- cgit