]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
collect2.c (error): Fix typo in declaration.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 29 Jan 1999 11:41:02 +0000 (11:41 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 29 Jan 1999 11:41:02 +0000 (11:41 +0000)
        * collect2.c (error): Fix typo in declaration.
        * cpperror.c (cpp_message): Likewise.
        * cpplib.c (cpp_warning): Likewise.
        * cpplib.h (cpp_notice): Use PVPROTO not VPROTO, also add
        ATTRIBUTE_PRINTF_1.
        * toplev.c (error): Fix typo in declaration.

From-SVN: r24904

gcc/ChangeLog
gcc/collect2.c
gcc/cpperror.c
gcc/cpplib.c
gcc/cpplib.h
gcc/toplev.c

index a98a5fc5e36a77436e1ad16e771c51b3ec11bc20..cbeb16068b44a5cf62e0c931937e0ca112ad1211 100644 (file)
@@ -1,3 +1,16 @@
+Fri Jan 29 14:36:11 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * collect2.c (error): Fix typo in declaration.
+
+       * cpperror.c (cpp_message): Likewise.
+
+       * cpplib.c (cpp_warning): Likewise.
+
+       * cpplib.h (cpp_notice): Use PVPROTO not VPROTO, also add
+       ATTRIBUTE_PRINTF_1.
+
+       * toplev.c (error): Fix typo in declaration.
+
 Fri Jan 29 15:44:13 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
 
        * loop.c (strength_reduce): Fix HAVE_cc0 handling when scanning
index b6407750f6fac90da05dbdbe6d4b354721f0a4a8..6ec9f3114725c03d44a63ef4c0f1483f2b47bec2 100644 (file)
@@ -476,7 +476,7 @@ void
 error VPROTO((const char * msgid, ...))
 {
 #ifndef ANSI_PROTOTYPES
-  const char * string;
+  const char * msgid;
 #endif
   va_list ap;
  
index af7ab8c9a6391163f0369b5199837e785eb944bd..174450bceb2b4c200c33df7ce62abe2a8ec09710 100644 (file)
@@ -129,7 +129,7 @@ cpp_message VPROTO ((cpp_reader *pfile, int is_error, const char *msgid, ...))
 #ifndef ANSI_PROTOTYPES
   cpp_reader *pfile;
   int is_error;
-  const char *msg;
+  const char *msgid;
 #endif
   va_list ap;
   
index b1c2f6da52330f27e871924e12edd8e165e36b9f..770956bcb2569163adf99729a28c95c8e2633e91 100644 (file)
@@ -6277,7 +6277,7 @@ cpp_warning VPROTO ((cpp_reader * pfile, const char *msgid, ...))
 {
 #ifndef ANSI_PROTOTYPES
   cpp_reader *pfile;
-  const char *msg;
+  const char *msgid;
 #endif
   va_list ap;
   
index 1b82e182be17f9a614cbaf5a0db6ef9050bcfe50..bd041920c69e0b4a63e332763fce5a20b05adfd2 100644 (file)
@@ -713,7 +713,7 @@ extern void cpp_message PVPROTO ((cpp_reader *, int, const char *, ...))
 extern void cpp_pfatal_with_name PROTO ((cpp_reader *, const char *));
 extern void cpp_file_line_for_message PROTO ((cpp_reader *, char *, int, int));
 extern void cpp_print_containing_files PROTO ((cpp_reader *));
-extern void cpp_notice VPROTO ((const char *msgid, ...));
+extern void cpp_notice PVPROTO ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
 
 /* In cppfiles.c */
 extern void append_include_chain       PROTO ((cpp_reader *,
index bee1e8ec8946be46648455a0fde06e8943482ef4..4ecc9c9b172b17e86c2a0f4f777d89d952fb582d 100644 (file)
@@ -1852,7 +1852,7 @@ error VPROTO((const char *msgid, ...))
   VA_START (ap, msgid);
 
 #ifndef ANSI_PROTOTYPES
-  msgic = va_arg (ap, const char *);
+  msgid = va_arg (ap, const char *);
 #endif
 
   verror (msgid, ap);