| 1 |
Description: GCC now does warn about exceptions being caught |
| 2 |
Author: Michael Tautschnig <[email protected]> |
| 3 |
Bug-Debian: https://bugs.debian.org/812262 |
| 4 |
|
| 5 |
--- |
| 6 |
The information above should follow the Patch Tagging Guidelines, please |
| 7 |
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here |
| 8 |
are templates for supplementary fields that you might want to add: |
| 9 |
|
| 10 |
Origin: <vendor|upstream|other>, <url of original patch> |
| 11 |
Bug: <url in upstream bugtracker> |
| 12 |
Bug-Debian: https://bugs.debian.org/<bugnumber> |
| 13 |
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> |
| 14 |
Forwarded: <no|not-needed|url proving that it has been forwarded> |
| 15 |
Reviewed-By: <name and email of someone who approved the patch> |
| 16 |
Last-Update: <YYYY-MM-DD> |
| 17 |
|
| 18 |
--- diagnostics-0.3.3.orig/diagnostics/macros/throwing_block_annotation.t.cpp |
| 19 |
+++ diagnostics-0.3.3/diagnostics/macros/throwing_block_annotation.t.cpp |
| 20 |
@@ -223,10 +223,12 @@ using ::diagnostics::unittest::internal: |
| 21 |
void no_explicit_te(bool const rethrow) |
| 22 |
TEST_CASE(0) |
| 23 |
|
| 24 |
+#if 0 |
| 25 |
void explicit_te(bool const rethrow) |
| 26 |
// This test case generates code has redundant catch(Test_Exception &) |
| 27 |
// clauses. Most compilers warn in this case. |
| 28 |
TEST_CASE(1) |
| 29 |
+#endif |
| 30 |
|
| 31 |
|
| 32 |
void no_explicit_te_rethrow(Test_Data & data) |
| 33 |
@@ -240,6 +242,8 @@ void no_explicit_te_nothrow(Test_Data & |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
+#if 0 |
| 38 |
+// GCC will warn about these as indicated above |
| 39 |
void explicit_te_rethrow(Test_Data & data) |
| 40 |
{ |
| 41 |
explicit_te(true); |
| 42 |
@@ -249,6 +253,7 @@ void explicit_te_nothrow(Test_Data & dat |
| 43 |
{ |
| 44 |
explicit_te(false); |
| 45 |
} |
| 46 |
+#endif |
| 47 |
|
| 48 |
|
| 49 |
TEST_COMPONENT_TEST_NAMESPACE_END; |
| 50 |
@@ -258,8 +263,8 @@ DIAGNOSTICS_NAMESPACE_END; |
| 51 |
TEST_SUITE_BEGIN; |
| 52 |
TEST_NORMAL_CASE(&no_explicit_te_rethrow,LEVEL_PROD); |
| 53 |
TEST_NORMAL_CASE(&no_explicit_te_nothrow,LEVEL_PROD); |
| 54 |
-TEST_NORMAL_CASE(&explicit_te_rethrow,LEVEL_PROD); |
| 55 |
-TEST_NORMAL_CASE(&explicit_te_nothrow,LEVEL_PROD); |
| 56 |
+//TEST_NORMAL_CASE(&explicit_te_rethrow,LEVEL_PROD); |
| 57 |
+//TEST_NORMAL_CASE(&explicit_te_nothrow,LEVEL_PROD); |
| 58 |
TEST_SUITE_END; |
| 59 |
|
| 60 |
STREAM_TEST_SYSTEM_MAIN; |