Merge lp:~paul-lucas/zorba/bug-1000478 into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Paul J. Lucas
Approved revision: 10851
Merged at revision: 10851
Proposed branch: lp:~paul-lucas/zorba/bug-1000478
Merge into: lp:zorba
Diff against target: 320 lines (+129/-123)
4 files modified
src/runtime/full_text/ft_module_impl.cpp (+9/-0)
src/unit_tests/string_instantiate.cpp (+116/-116)
src/util/fs_util.cpp (+1/-1)
src/util/string/rstring.h (+3/-6)
To merge this branch: bzr merge lp:~paul-lucas/zorba/bug-1000478
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+106087@code.launchpad.net

Commit message

Fixed the build error and also fixed several warnings that are new with Xcode 4.3.2.

Description of the change

Fixed the build error and also fixed several warnings that are new with Xcode 4.3.2.

To post a comment you must log in.
Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~paul-lucas/zorba/bug-1000478 into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:274 (message):
  Validation queue job bug-1000478-2012-05-17T15-00-10.469Z is finished. The
  final status was:

  No tests were run - build or configure step must have failed.

  Not commiting changes.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

lp:~paul-lucas/zorba/bug-1000478 updated
10851. By Paul J. Lucas

Moved #pragmas outside of functions.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug-1000478-2012-05-17T15-30-06.323Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/runtime/full_text/ft_module_impl.cpp'
2--- src/runtime/full_text/ft_module_impl.cpp 2012-05-16 00:52:46 +0000
3+++ src/runtime/full_text/ft_module_impl.cpp 2012-05-17 15:26:24 +0000
4@@ -423,6 +423,11 @@
5
6 ///////////////////////////////////////////////////////////////////////////////
7
8+#ifdef __GNUC__
9+# pragma GCC diagnostic push
10+# pragma GCC diagnostic ignored "-Wbind-to-temporary-copy"
11+#endif /* __GNUC__ */
12+
13 bool ThesaurusLookupIterator::nextImpl( store::Item_t &result,
14 PlanState &plan_state ) const {
15 zstring error_msg;
16@@ -517,6 +522,10 @@
17 ZORBA_ASSERT( state->tresult_.get() );
18 }
19
20+#ifdef __GNUC__
21+# pragma GCC diagnostic pop
22+#endif /* __GNUC__ */
23+
24 ///////////////////////////////////////////////////////////////////////////////
25
26 TokenizeIterator::TokenizeIterator( static_context *sctx, QueryLoc const &loc,
27
28=== modified file 'src/unit_tests/string_instantiate.cpp'
29--- src/unit_tests/string_instantiate.cpp 2012-05-03 12:31:51 +0000
30+++ src/unit_tests/string_instantiate.cpp 2012-05-17 15:26:24 +0000
31@@ -196,63 +196,63 @@
32 s1.substr();
33 s1.swap( s2 );
34
35- s1 == s2;
36- s1 == ss;
37- ss == s1;
38- s1 == cs;
39- s1 == csc;
40- cs == s1;
41- csc == s1;
42-
43- s1 != s2;
44- s1 != ss;
45- ss != s1;
46- s1 != cs;
47- s1 != csc;
48- cs != s1;
49- csc != s1;
50-
51- s1 < s2;
52- s1 < ss;
53- ss < s1;
54- s1 < cs;
55- s1 < csc;
56- cs < s1;
57- csc < s1;
58-
59- s1 <= s2;
60- s1 <= ss;
61- ss <= s1;
62- s1 <= cs;
63- s1 <= csc;
64- cs <= s1;
65- csc <= s1;
66-
67- s1 > s2;
68- s1 > ss;
69- ss > s1;
70- s1 > cs;
71- s1 > csc;
72- cs > s1;
73- csc > s1;
74-
75- s1 >= s2;
76- s1 >= ss;
77- ss >= s1;
78- s1 >= cs;
79- s1 >= csc;
80- cs >= s1;
81- csc >= s1;
82-
83- s1 + s1;
84- s1 + ss;
85- ss + s1;
86- s1 + cs;
87- s1 + csc;
88- cs + s1;
89- csc + s1;
90- s1 + c;
91- c + s1;
92+ (void)(s1 == s2);
93+ (void)(s1 == ss);
94+ (void)(ss == s1);
95+ (void)(s1 == cs);
96+ (void)(s1 == csc);
97+ (void)(cs == s1);
98+ (void)(csc == s1);
99+
100+ (void)(s1 != s2);
101+ (void)(s1 != ss);
102+ (void)(ss != s1);
103+ (void)(s1 != cs);
104+ (void)(s1 != csc);
105+ (void)(cs != s1);
106+ (void)(csc != s1);
107+
108+ (void)(s1 < s2);
109+ (void)(s1 < ss);
110+ (void)(ss < s1);
111+ (void)(s1 < cs);
112+ (void)(s1 < csc);
113+ (void)(cs < s1);
114+ (void)(csc < s1);
115+
116+ (void)(s1 <= s2);
117+ (void)(s1 <= ss);
118+ (void)(ss <= s1);
119+ (void)(s1 <= cs);
120+ (void)(s1 <= csc);
121+ (void)(cs <= s1);
122+ (void)(csc <= s1);
123+
124+ (void)(s1 > s2);
125+ (void)(s1 > ss);
126+ (void)(ss > s1);
127+ (void)(s1 > cs);
128+ (void)(s1 > csc);
129+ (void)(cs > s1);
130+ (void)(csc > s1);
131+
132+ (void)(s1 >= s2);
133+ (void)(s1 >= ss);
134+ (void)(ss >= s1);
135+ (void)(s1 >= cs);
136+ (void)(s1 >= csc);
137+ (void)(cs >= s1);
138+ (void)(csc >= s1);
139+
140+ (void)(s1 + s1);
141+ (void)(s1 + ss);
142+ (void)(ss + s1);
143+ (void)(s1 + cs);
144+ (void)(s1 + csc);
145+ (void)(cs + s1);
146+ (void)(csc + s1);
147+ (void)(s1 + c);
148+ (void)(c + s1);
149
150 cout << s1;
151 }
152@@ -485,65 +485,65 @@
153 u1.swap( s );
154 u1.swap( u1 );
155
156- u1 == s;
157- u1 == ss;
158- ss == u1;
159- u1 == cs;
160- u1 == csc;
161- cs == u1;
162- csc == u1;
163-
164- u1 != s;
165- u1 != ss;
166- ss != u1;
167- u1 != cs;
168- u1 != csc;
169- cs != u1;
170- csc != u1;
171-
172- u1 < s;
173- u1 < ss;
174- ss < u1;
175- u1 < cs;
176- u1 < csc;
177- cs < u1;
178- csc < u1;
179-
180- u1 <= s;
181- u1 <= ss;
182- ss <= u1;
183- u1 <= cs;
184- u1 <= csc;
185- cs <= u1;
186- csc <= u1;
187-
188- u1 > s;
189- u1 > ss;
190- ss > u1;
191- u1 > cs;
192- u1 > csc;
193- cs > u1;
194- csc > u1;
195-
196- u1 >= s;
197- u1 >= ss;
198- ss >= u1;
199- u1 >= cs;
200- u1 >= csc;
201- cs >= u1;
202- csc >= u1;
203-
204- u1 + u1;
205- u1 + s;
206- s + u1;
207- u1 + ss;
208- ss + u1;
209- u1 + cs;
210- u1 + csc;
211- cs + u1;
212- csc + u1;
213- u1 + c;
214- c + u1;
215+ (void)(u1 == s);
216+ (void)(u1 == ss);
217+ (void)(ss == u1);
218+ (void)(u1 == cs);
219+ (void)(u1 == csc);
220+ (void)(cs == u1);
221+ (void)(csc == u1);
222+
223+ (void)(u1 != s);
224+ (void)(u1 != ss);
225+ (void)(ss != u1);
226+ (void)(u1 != cs);
227+ (void)(u1 != csc);
228+ (void)(cs != u1);
229+ (void)(csc != u1);
230+
231+ (void)(u1 < s);
232+ (void)(u1 < ss);
233+ (void)(ss < u1);
234+ (void)(u1 < cs);
235+ (void)(u1 < csc);
236+ (void)(cs < u1);
237+ (void)(csc < u1);
238+
239+ (void)(u1 <= s);
240+ (void)(u1 <= ss);
241+ (void)(ss <= u1);
242+ (void)(u1 <= cs);
243+ (void)(u1 <= csc);
244+ (void)(cs <= u1);
245+ (void)(csc <= u1);
246+
247+ (void)(u1 > s);
248+ (void)(u1 > ss);
249+ (void)(ss > u1);
250+ (void)(u1 > cs);
251+ (void)(u1 > csc);
252+ (void)(cs > u1);
253+ (void)(csc > u1);
254+
255+ (void)(u1 >= s);
256+ (void)(u1 >= ss);
257+ (void)(ss >= u1);
258+ (void)(u1 >= cs);
259+ (void)(u1 >= csc);
260+ (void)(cs >= u1);
261+ (void)(csc >= u1);
262+
263+ (void)(u1 + u1);
264+ (void)(u1 + s);
265+ (void)(s + u1);
266+ (void)(u1 + ss);
267+ (void)(ss + u1);
268+ (void)(u1 + cs);
269+ (void)(u1 + csc);
270+ (void)(cs + u1);
271+ (void)(csc + u1);
272+ (void)(u1 + c);
273+ (void)(c + u1);
274 }
275
276 ///////////////////////////////////////////////////////////////////////////////
277
278=== modified file 'src/util/fs_util.cpp'
279--- src/util/fs_util.cpp 2012-05-03 12:31:51 +0000
280+++ src/util/fs_util.cpp 2012-05-17 15:26:24 +0000
281@@ -324,7 +324,7 @@
282 case DT_DIR: {
283 char const *const name = ent_->d_name;
284 // skip "." and ".." entries
285- if ( name[0] == '.' && (!name[1] || name[1] == '.' && !name[2]) )
286+ if ( name[0] == '.' && (!name[1] || (name[1] == '.' && !name[2])) )
287 continue;
288 ent_type_ = directory;
289 break;
290
291=== modified file 'src/util/string/rstring.h'
292--- src/util/string/rstring.h 2012-05-03 12:31:51 +0000
293+++ src/util/string/rstring.h 2012-05-17 15:26:24 +0000
294@@ -2051,13 +2051,12 @@
295
296 string_data data_;
297
298-#if defined _MSC_VER || defined CLANG
299 //
300-// Microsoft's Visual Studio C++ compiler doesn't consider the operator+()
301-// functions as friends even though they're declared as such.
302+// I currently don't understand why the compiler complains about append_safe()
303+// being private within operator+() functions even though they are declared as
304+// friends. For now, just make them "public."
305 //
306 public:
307-#endif
308 // RSTRING_APPEND_SAFE_CP_ST_CP_ST_X
309 /**
310 * Appends one or two C strings with known-valid length parameters.
311@@ -2073,9 +2072,7 @@
312 */
313 void append_safe( const_pointer s1, size_type n1,
314 const_pointer s2 = nullptr, size_type n2 = 0 );
315-#if defined _MSC_VER || defined CLANG
316 private:
317-#endif
318
319 /**
320 * A version of assign() optimized slightly for when \a n == 1.

Subscribers

People subscribed via source and target branches