From ba19397c94378626bc66f44fa75d769490a52ebf Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Wed, 22 Sep 2010 08:48:56 +0700 Subject: [PATCH] tests: ISO C++ forbids declaration of 'v1' with no type. * tests/lt_dlexit.at (lt_dlexit unloading libs): Added an explicit int type to declaration of 'v1' to prevent compilation failure with C++. Signed-off-by: Gary V. Vaughan --- ChangeLog | 7 +++++++ tests/lt_dlexit.at | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7ecc32560..ede9acf89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-09-22 Gary V. Vaughan + + tests: ISO C++ forbids declaration of 'v1' with no type. + * tests/lt_dlexit.at (lt_dlexit unloading libs): Added an + explicit int type to declaration of 'v1' to prevent compilation + failure with C++. + 2010-09-22 Peter Rosin tests: reloadable objects do not work on MSVC, SKIP test. diff --git a/tests/lt_dlexit.at b/tests/lt_dlexit.at index c80c1ebab..9441f8a9a 100644 --- a/tests/lt_dlexit.at +++ b/tests/lt_dlexit.at @@ -124,7 +124,7 @@ extern "C" { # define LIBA1_SCOPE extern #endif LIBA1_SCOPE int f1 (int); -LIBA1_SCOPE v1; +LIBA1_SCOPE int v1; int fb1 (int x) { return f1 (v1) + x - 3; } int vb1 = 3; #ifdef __cplusplus -- 2.47.2