]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: ISO C++ forbids declaration of 'v1' with no type.
authorGary V. Vaughan <gary@gnu.org>
Wed, 22 Sep 2010 01:48:56 +0000 (08:48 +0700)
committerGary V. Vaughan <gary@gnu.org>
Wed, 22 Sep 2010 16:25:23 +0000 (23:25 +0700)
* 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 <gary@gnu.org>
ChangeLog
tests/lt_dlexit.at

index 7ecc32560e2b2f38e5c9f9e9f71481079713e967..ede9acf89851b33baf0d7e0f84b4994f915ea043 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-09-22  Gary V. Vaughan  <gary@gnu.org>
+
+       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  <peda@lysator.liu.se>
 
        tests: reloadable objects do not work on MSVC, SKIP test.
index c80c1ebabaedd2c052e53d110bf52d781eb994aa..9441f8a9aa8d45ed357ca414e44bad9b62c436ce 100644 (file)
@@ -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