From: Russell Bryant Date: Sat, 11 Feb 2006 20:54:21 +0000 (+0000) Subject: eliminate warning on older versions of gcc X-Git-Tag: 1.4.0-beta1~2658 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8232b40884b5d19765fb8b1a8611a0e28d76c033;p=thirdparty%2Fasterisk.git eliminate warning on older versions of gcc git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9629 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/stringfields.h b/include/asterisk/stringfields.h index 4fb87e4b2f..827bb96917 100644 --- a/include/asterisk/stringfields.h +++ b/include/asterisk/stringfields.h @@ -103,7 +103,7 @@ typedef const char * ast_string_field; \internal \brief A constant empty string used for fields that have no other value */ -extern const char *__ast_string_field_empty; +extern const char __ast_string_field_empty[]; /*! \internal diff --git a/utils.c b/utils.c index 0022a31bd6..8e4cc4acc6 100644 --- a/utils.c +++ b/utils.c @@ -961,7 +961,7 @@ void ast_join(char *s, size_t len, char * const w[]) s[ofs] = '\0'; } -const char const *__ast_string_field_empty = ""; +const char __ast_string_field_empty[] = ""; static int add_string_pool(struct ast_string_field_mgr *mgr, size_t size) {