public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Warning patrol: unwind.*
@ 2002-03-17  1:20 Andreas Jaeger
  2002-03-17  1:54 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jaeger @ 2002-03-17  1:20 UTC (permalink / raw)
  To: libc-hacker


The appended patch gets rid of these warnings:

../sysdeps/generic/unwind-pe.h:67: warning: no previous prototype for `size_of_encoded_value'
../sysdeps/generic/unwind-pe.h:131: warning: no previous prototype for `read_encoded_value_with_base'
../sysdeps/generic/unwind-dw2-fde-glibc.c:253: warning: no previous prototype for `_Unwind_Find_FDE'

Ok to commit?

Andreas

2002-03-17  Andreas Jaeger  <aj@suse.de>

	* sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
	* sysdeps/generic/unwind-pe.h: Likewise.

============================================================
Index: sysdeps/generic/unwind-pe.h
--- sysdeps/generic/unwind-pe.h	16 Nov 2001 01:19:30 -0000	1.1
+++ sysdeps/generic/unwind-pe.h	17 Mar 2002 09:12:00 -0000
@@ -1,5 +1,5 @@
 /* Exception handling and frame unwind runtime interface routines.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
 
    This file is part of GNU CC.
 
@@ -51,6 +51,16 @@
 
 #define DW_EH_PE_indirect	0x80
 \f
+
+#ifdef _LIBC
+/* Prototypes.  */
+extern unsigned int size_of_encoded_value (unsigned char encoding);
+extern const unsigned char *read_encoded_value_with_base
+  (unsigned char encoding, _Unwind_Ptr base,
+   const unsigned char *p, _Unwind_Ptr *val);
+#endif
+
+
 
 /* Given an encoding, return the number of bytes the format occupies.
    This is only defined for fixed-size encodings, and so does not
============================================================
Index: sysdeps/generic/unwind-dw2-fde-glibc.c
--- sysdeps/generic/unwind-dw2-fde-glibc.c	8 Jan 2002 06:21:28 -0000	1.1
+++ sysdeps/generic/unwind-dw2-fde-glibc.c	17 Mar 2002 09:13:48 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
    Contributed by Jakub Jelinek <jakub@redhat.com>.
 
    This file is part of GNU CC.
@@ -44,7 +44,9 @@
 
 #undef _Unwind_Find_FDE
 
-fde * _Unwind_Find_registered_FDE (void *pc, struct dwarf_eh_bases *bases);
+extern fde * _Unwind_Find_registered_FDE (void *pc,
+					  struct dwarf_eh_bases *bases);
+extern fde * _Unwind_Find_FDE (void *, struct dwarf_eh_bases *);
 
 struct unw_eh_callback_data
 {

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Warning patrol: unwind.*
  2002-03-17  1:20 Warning patrol: unwind.* Andreas Jaeger
@ 2002-03-17  1:54 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2002-03-17  1:54 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: GNU libc hacker

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

On Sun, 2002-03-17 at 01:15, Andreas Jaeger wrote:

> Ok to commit?

Yes.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-17  9:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-17  1:20 Warning patrol: unwind.* Andreas Jaeger
2002-03-17  1:54 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).