From: Gary V. Vaughan Date: Wed, 22 Sep 2010 01:48:56 +0000 (+0700) Subject: tests: ISO C++ forbids declaration of 'v1' with no type. X-Git-Tag: v2.4~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba19397c94378626bc66f44fa75d769490a52ebf;p=thirdparty%2Flibtool.git 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 --- 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