File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -261,13 +261,12 @@ ADD_SUBDIRECTORY(include)
261
261
INCLUDE_DIRECTORIES (include )
262
262
263
263
#
264
- # Set higher warning level on Windows to catch non-portable
265
- # code.
264
+ # Set higher warning level for the main connector code.
266
265
#
267
266
268
267
foreach (LANG C CXX )
269
268
270
- IF (WIN32 )
269
+ if (WIN32 )
271
270
272
271
# 4127 = conditional expression is constant (needed for do {...} while(false))
273
272
# 4512 = assignment operator could not be generated
@@ -279,7 +278,12 @@ IF(WIN32)
279
278
280
279
set (CMAKE_${LANG}_FLAGS "${CMAKE_${LANG} _FLAGS} /W4 /wd4512 /wd4127" )
281
280
282
- ENDIF ()
281
+ else ()
282
+
283
+ set (CMAKE_${LANG}_FLAGS "${CMAKE_${LANG} _FLAGS} -Wextra" )
284
+ set (TEST_COMPILE_FLAGS "-Wno-sign-compare" )
285
+
286
+ endif ()
283
287
284
288
endforeach (LANG )
285
289
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ class Order_by : public cdk::Order_by
305
305
306
306
307
307
// Get sort direction for the current instance
308
- const Sort_direction::value direction () const { return m_sort_direction; }
308
+ Sort_direction::value direction () const { return m_sort_direction; }
309
309
};
310
310
311
311
typedef std::vector<Order_by_item> Order_item_list;
You can’t perform that action at this time.
0 commit comments