summaryrefslogtreecommitdiff
path: root/gcc/intl
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-08-02 17:01:13 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-08-02 17:01:13 +0000
commit50e60bc3d7c3ab94e6f5eabaaee3eab574e0b0c3 (patch)
tree33e626ecf7d173a341ab289bdd457e7b358a8650 /gcc/intl
parent3f954fc3f38a0fd76f8107b75f0f0b5936a29fd9 (diff)
downloadgcc-50e60bc3d7c3ab94e6f5eabaaee3eab574e0b0c3.tar.gz
c-common.h: Prototype min_precision and c_build_qualified_type here...
* c-common.h: Prototype min_precision and c_build_qualified_type here... * c-tree.h: ... not here. * errors.h: Prototype fancy_abort. * emit-rtl.c (gen_lowpart_common): Move variable 'c' into HOST_BITS_PER_WIDE_INT == 64 ifdef block. * regrename.c (regrename_optimize): Make control flow explicit. (replace_reg_in_block): Initialize reg_use to 0. * i386.c (legitimate_address_p): Rename error label to report_error to avoid namespace clash. cp: * cp-tree.h: Don't prototype min_precision here. (my_friendly_assert): Cast expression to void. * semantics.c (do_poplevel): Initialize scope_stmts. f: * expr.c (ffeexpr_finished_): Cast signed side of ?: expression to bool. java: * class.c (build_dtable_decl): Initialize dummy. intl: * dcgettext.c (find_msg): Initialize act before loop. (guess_category_value): Add dummy uses of both parameters. * localealias.c (read_alias_file): Cast arg of strchr to char *. From-SVN: r35427
Diffstat (limited to 'gcc/intl')
-rw-r--r--gcc/intl/ChangeLog7
-rw-r--r--gcc/intl/dcgettext.c3
-rw-r--r--gcc/intl/localealias.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/gcc/intl/ChangeLog b/gcc/intl/ChangeLog
index 00452d85c6f..48d0d7069ac 100644
--- a/gcc/intl/ChangeLog
+++ b/gcc/intl/ChangeLog
@@ -1,4 +1,11 @@
+2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
+
+ * dcgettext.c (find_msg): Initialize act before loop.
+ (guess_category_value): Add dummy uses of both parameters.
+ * localealias.c (read_alias_file): Cast arg of strchr to char *.
+
2000-06-06 Philipp Thomas <pthomas@suse.de>
+
* Makefile.in: Add -DIN_GCC to DEFS, add appropriate -I switches.
* dcgettext.c: Define _GNU_SOURCE before any system header is
included. Guard getcwd declaration with HAVE_DECL_GETCWD.
diff --git a/gcc/intl/dcgettext.c b/gcc/intl/dcgettext.c
index 4399b717d54..a830f1de124 100644
--- a/gcc/intl/dcgettext.c
+++ b/gcc/intl/dcgettext.c
@@ -455,6 +455,7 @@ find_msg (domain_file, msgid)
/* Now we try the default method: binary search in the sorted
array of messages. */
bottom = 0;
+ act = 0;
top = domain->nstrings;
while (bottom < top)
{
@@ -547,6 +548,8 @@ guess_category_value (category, categoryname)
const char *categoryname;
{
const char *retval;
+ (void) category; /* shut up compiler */
+ (void) categoryname; /* ditto */
/* The highest priority value is the `LANGUAGE' environment
variable. This is a GNU extension. */
diff --git a/gcc/intl/localealias.c b/gcc/intl/localealias.c
index 7c2f6ccb4ce..513cdc78e39 100644
--- a/gcc/intl/localealias.c
+++ b/gcc/intl/localealias.c
@@ -257,7 +257,7 @@ read_alias_file (fname, fname_len)
/* Possibly not the whole line fits into the buffer. Ignore
the rest of the line. */
- if (strchr (buf, '\n') == NULL)
+ if (strchr ((char *)buf, '\n') == NULL)
{
char altbuf[BUFSIZ];
do