diff options
author | Paolo Carlini <pcarlini@suse.de> | 2005-01-23 10:45:01 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2005-01-23 10:45:01 +0000 |
commit | 0554d39aed16ebeab2b35b24ee9e57f5035da15c (patch) | |
tree | 1c30b451f7d78970c0dcaad8123419a1e4c3a294 | |
parent | 54a12711c838eb66be4ffbdfa4167aa1ec8f70cd (diff) | |
download | gcc-0554d39aed16ebeab2b35b24ee9e57f5035da15c.zip gcc-0554d39aed16ebeab2b35b24ee9e57f5035da15c.tar.gz gcc-0554d39aed16ebeab2b35b24ee9e57f5035da15c.tar.bz2 |
re PR libstdc++/19343 (New warnings in libstdc++-v3 since 2004-01-05)
2005-01-23 Paolo Carlini <pcarlini@suse.de>
Andreas Jaeger <aj@suse.de>
PR libstdc++/19343
* include/bits/functexcept.h: Mark the helpers as 'noreturn'.
Co-Authored-By: Andreas Jaeger <aj@suse.de>
From-SVN: r94106
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/functexcept.h | 30 |
2 files changed, 21 insertions, 15 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index bc1ec75..2b53cfe 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2005-01-23 Paolo Carlini <pcarlini@suse.de> + Andreas Jaeger <aj@suse.de> + + PR libstdc++/19343 + * include/bits/functexcept.h: Mark the helpers as 'noreturn'. + 2005-01-21 Loren J. Rittle <ljrittle@acm.org> * testsuite/27_io/basic_filebuf/open/char/9507.cc: Allow diff --git a/libstdc++-v3/include/bits/functexcept.h b/libstdc++-v3/include/bits/functexcept.h index 448297c..4c2d4a4 100644 --- a/libstdc++-v3/include/bits/functexcept.h +++ b/libstdc++-v3/include/bits/functexcept.h @@ -1,6 +1,6 @@ // Function-Based Exception Support -*- C++ -*- -// Copyright (C) 2001, 2004 Free Software Foundation, Inc. +// Copyright (C) 2001, 2004, 2005 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -44,50 +44,50 @@ namespace std { // Helper for exception objects in <except> void - __throw_bad_exception(void); + __throw_bad_exception(void) __attribute__((__noreturn__)); // Helper for exception objects in <new> void - __throw_bad_alloc(void); + __throw_bad_alloc(void) __attribute__((__noreturn__)); // Helper for exception objects in <typeinfo> void - __throw_bad_cast(void); + __throw_bad_cast(void) __attribute__((__noreturn__)); void - __throw_bad_typeid(void); + __throw_bad_typeid(void) __attribute__((__noreturn__)); // Helpers for exception objects in <stdexcept> void - __throw_logic_error(const char* __s); + __throw_logic_error(const char* __s) __attribute__((__noreturn__)); void - __throw_domain_error(const char* __s); + __throw_domain_error(const char* __s) __attribute__((__noreturn__)); void - __throw_invalid_argument(const char* __s); + __throw_invalid_argument(const char* __s) __attribute__((__noreturn__)); void - __throw_length_error(const char* __s); + __throw_length_error(const char* __s) __attribute__((__noreturn__)); void - __throw_out_of_range(const char* __s); + __throw_out_of_range(const char* __s) __attribute__((__noreturn__)); void - __throw_runtime_error(const char* __s); + __throw_runtime_error(const char* __s) __attribute__((__noreturn__)); void - __throw_range_error(const char* __s); + __throw_range_error(const char* __s) __attribute__((__noreturn__)); void - __throw_overflow_error(const char* __s); + __throw_overflow_error(const char* __s) __attribute__((__noreturn__)); void - __throw_underflow_error(const char* __s); + __throw_underflow_error(const char* __s) __attribute__((__noreturn__)); // Helpers for exception objects in basic_ios void - __throw_ios_failure(const char* __s); + __throw_ios_failure(const char* __s) __attribute__((__noreturn__)); } // namespace std #endif |