Commit 735396d9 by Kaveh R. Ghazi Committed by Kaveh Ghazi

Warning fixes:

        * cccp.c (default_include): Initialize structure memebers.
        (pass_thru_directive): Change the type of 'keyword_length' to int.
        (main): Cast `bindtextdomain' and `textdomain' to (void).
        * collect2.c (main): Likewise.
        * cppmain.c (main): Likewise.
        * gcc.c (main): Likewise.
        * gcov.c (main): Likewise.
        * protoize.c (main): Likewise.
        * toplev.c (main): Likewise.

From-SVN: r25839
parent d8c8a706
Thu Mar 18 10:14:18 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cccp.c (default_include): Initialize structure memebers.
(pass_thru_directive): Change the type of 'keyword_length' to int.
(main): Cast `bindtextdomain' and `textdomain' to (void).
* collect2.c (main): Likewise.
* cppmain.c (main): Likewise.
* gcc.c (main): Likewise.
* gcov.c (main): Likewise.
* protoize.c (main): Likewise.
* toplev.c (main): Likewise.
1999-03-18 Gavin Romig-Koch <gavin@cygnus.com> 1999-03-18 Gavin Romig-Koch <gavin@cygnus.com>
* config/mips/mips.c (mips_explicit_type_size_string): Correct * config/mips/mips.c (mips_explicit_type_size_string): Correct
......
...@@ -385,42 +385,42 @@ static struct default_include { ...@@ -385,42 +385,42 @@ static struct default_include {
#else #else
= { = {
/* Pick up GNU C++ specific include files. */ /* Pick up GNU C++ specific include files. */
{ GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, 0 },
#ifdef CROSS_COMPILE #ifdef CROSS_COMPILE
/* This is the dir for fixincludes. Put it just before /* This is the dir for fixincludes. Put it just before
the files that we fix. */ the files that we fix. */
{ GCC_INCLUDE_DIR, "GCC", 0, 0 }, { GCC_INCLUDE_DIR, "GCC", 0, 0, 0 },
/* For cross-compilation, this dir name is generated /* For cross-compilation, this dir name is generated
automatically in Makefile.in. */ automatically in Makefile.in. */
{ CROSS_INCLUDE_DIR, "GCC", 0, 0 }, { CROSS_INCLUDE_DIR, "GCC", 0, 0, 0 },
#ifdef TOOL_INCLUDE_DIR #ifdef TOOL_INCLUDE_DIR
/* This is another place that the target system's headers might be. */ /* This is another place that the target system's headers might be. */
{ TOOL_INCLUDE_DIR, "BINUTILS", 0, 0 }, { TOOL_INCLUDE_DIR, "BINUTILS", 0, 0, 0 },
#endif #endif
#else /* not CROSS_COMPILE */ #else /* not CROSS_COMPILE */
#ifdef LOCAL_INCLUDE_DIR #ifdef LOCAL_INCLUDE_DIR
/* This should be /usr/local/include and should come before /* This should be /usr/local/include and should come before
the fixincludes-fixed header files. */ the fixincludes-fixed header files. */
{ LOCAL_INCLUDE_DIR, 0, 0, 1 }, { LOCAL_INCLUDE_DIR, 0, 0, 1, 0 },
#endif #endif
#ifdef TOOL_INCLUDE_DIR #ifdef TOOL_INCLUDE_DIR
/* This is here ahead of GCC_INCLUDE_DIR because assert.h goes here. /* This is here ahead of GCC_INCLUDE_DIR because assert.h goes here.
Likewise, behind LOCAL_INCLUDE_DIR, where glibc puts its assert.h. */ Likewise, behind LOCAL_INCLUDE_DIR, where glibc puts its assert.h. */
{ TOOL_INCLUDE_DIR, "BINUTILS", 0, 0 }, { TOOL_INCLUDE_DIR, "BINUTILS", 0, 0, 0 },
#endif #endif
/* This is the dir for fixincludes. Put it just before /* This is the dir for fixincludes. Put it just before
the files that we fix. */ the files that we fix. */
{ GCC_INCLUDE_DIR, "GCC", 0, 0 }, { GCC_INCLUDE_DIR, "GCC", 0, 0, 0 },
/* Some systems have an extra dir of include files. */ /* Some systems have an extra dir of include files. */
#ifdef SYSTEM_INCLUDE_DIR #ifdef SYSTEM_INCLUDE_DIR
{ SYSTEM_INCLUDE_DIR, 0, 0, 0 }, { SYSTEM_INCLUDE_DIR, 0, 0, 0, 0 },
#endif #endif
#ifndef STANDARD_INCLUDE_COMPONENT #ifndef STANDARD_INCLUDE_COMPONENT
#define STANDARD_INCLUDE_COMPONENT 0 #define STANDARD_INCLUDE_COMPONENT 0
#endif #endif
{ STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT, 0, 0 }, { STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT, 0, 0, 0 },
#endif /* not CROSS_COMPILE */ #endif /* not CROSS_COMPILE */
{ 0, 0, 0, 0 } { 0, 0, 0, 0, 0 }
}; };
#endif /* no INCLUDE_DEFAULTS */ #endif /* no INCLUDE_DEFAULTS */
...@@ -1250,8 +1250,8 @@ main (argc, argv) ...@@ -1250,8 +1250,8 @@ main (argc, argv)
#ifdef HAVE_LC_MESSAGES #ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#endif #endif
bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
textdomain (PACKAGE); (void) textdomain (PACKAGE);
progname = base_name (argv[0]); progname = base_name (argv[0]);
...@@ -5738,7 +5738,7 @@ pass_thru_directive (buf, limit, op, keyword) ...@@ -5738,7 +5738,7 @@ pass_thru_directive (buf, limit, op, keyword)
FILE_BUF *op; FILE_BUF *op;
struct directive *keyword; struct directive *keyword;
{ {
register unsigned keyword_length = keyword->length; register int keyword_length = keyword->length;
check_expand (op, 1 + keyword_length + (limit - buf)); check_expand (op, 1 + keyword_length + (limit - buf));
*op->bufp++ = '#'; *op->bufp++ = '#';
......
...@@ -1002,8 +1002,8 @@ main (argc, argv) ...@@ -1002,8 +1002,8 @@ main (argc, argv)
#ifdef HAVE_LC_MESSAGES #ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#endif #endif
bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
textdomain (PACKAGE); (void) textdomain (PACKAGE);
/* Do not invoke xcalloc before this point, since locale needs to be /* Do not invoke xcalloc before this point, since locale needs to be
set first, in case a diagnostic is issued. */ set first, in case a diagnostic is issued. */
......
...@@ -72,8 +72,8 @@ main (argc, argv) ...@@ -72,8 +72,8 @@ main (argc, argv)
#ifdef HAVE_LC_MESSAGES #ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#endif #endif
bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
textdomain (PACKAGE); (void) textdomain (PACKAGE);
cpp_reader_init (&parse_in); cpp_reader_init (&parse_in);
parse_in.opts = opts; parse_in.opts = opts;
......
...@@ -4656,8 +4656,8 @@ main (argc, argv) ...@@ -4656,8 +4656,8 @@ main (argc, argv)
#ifdef HAVE_LC_MESSAGES #ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#endif #endif
bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
textdomain (PACKAGE); (void) textdomain (PACKAGE);
if (signal (SIGINT, SIG_IGN) != SIG_IGN) if (signal (SIGINT, SIG_IGN) != SIG_IGN)
signal (SIGINT, fatal_error); signal (SIGINT, fatal_error);
......
...@@ -228,8 +228,8 @@ main (argc, argv) ...@@ -228,8 +228,8 @@ main (argc, argv)
#ifdef HAVE_LC_MESSAGES #ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#endif #endif
bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
textdomain (PACKAGE); (void) textdomain (PACKAGE);
process_args (argc, argv); process_args (argc, argv);
......
...@@ -4560,8 +4560,8 @@ main (argc, argv) ...@@ -4560,8 +4560,8 @@ main (argc, argv)
#ifdef HAVE_LC_MESSAGES #ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#endif #endif
bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
textdomain (PACKAGE); (void) textdomain (PACKAGE);
cwd_buffer = getpwd (); cwd_buffer = getpwd ();
if (!cwd_buffer) if (!cwd_buffer)
......
...@@ -4678,8 +4678,8 @@ main (argc, argv) ...@@ -4678,8 +4678,8 @@ main (argc, argv)
#ifdef HAVE_LC_MESSAGES #ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#endif #endif
bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
textdomain (PACKAGE); (void) textdomain (PACKAGE);
signal (SIGFPE, float_signal); signal (SIGFPE, float_signal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment