[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi] authenticity_test.cpp compilation error under Linux
From: |
Vadim Zeitlin |
Subject: |
[lmi] authenticity_test.cpp compilation error under Linux |
Date: |
Mon, 2 Jun 2008 01:01:24 +0200 |
Hello,
g++ gives the following diagnostics when compiling authenticity test:
cc1plus: warnings being treated as errors
authenticity_test.cpp: In member function 'void PasskeyTest::TestFromAfar()
const':
authenticity_test.cpp:320: warning: label 'done' defined but not used
The following trivial patch fixes this
--- authenticity_test.cpp 2008-01-01 18:30:08 +0000
+++ authenticity_test.cpp 2008-06-01 22:55:59 +0000
@@ -315,9 +315,9 @@
BOOST_TEST_EQUAL(remote_dir_1.string(), fs::current_path().string());
BOOST_TEST_EQUAL(0, chdir(Pwd_.string().c_str()));
BOOST_TEST_EQUAL(Pwd_.string(), fs::current_path().string());
+
+ done:
#endif // defined LMI_MSW
-
- done:
CheckNominal(__FILE__, __LINE__);
}
of course, but I'm not sure whether the CheckNominal() call before the end
of the function is intentional, it seems strange to execute it after an
exception but I admit that I don't really understand what does this code
do.
In any case, the label shouldn't be defined under non-MSW.
Thanks,
VZ
- [lmi] authenticity_test.cpp compilation error under Linux,
Vadim Zeitlin <=