From 397490e940ea1bbf105516d81b1a52b85d962654 Mon Sep 17 00:00:00 2001 From: Kouhei Sutou Date: Mon, 28 Aug 2017 15:49:03 +0900 Subject: [PATCH] [GLib] Suppress sign-conversion warnings Apache Arrow C++ uses int as result type for expression that uses size_t. It causes sign-conversion warning but the coding style is expected. Example: .../arrow/buffer.h:296:41: warning: implicit conversion changes signedness: 'unsigned long' to 'int64_t' (aka 'long') [-Wsign-conversion] int64_t length() const { return size_ / sizeof(T); } ~~~~~~ ~~~~~~^~~~~~~~~~~ --- c_glib/configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c_glib/configure.ac b/c_glib/configure.ac index 375f76efcdd..103f11b4bbe 100644 --- a/c_glib/configure.ac +++ b/c_glib/configure.ac @@ -36,8 +36,8 @@ AC_PROG_CXX AX_CXX_COMPILE_STDCXX_11([ext], [mandatory]) LT_INIT -GARROW_CFLAGS="-Wall -Wconversion" -GARROW_CXXFLAGS="-Wall -Wconversion" +GARROW_CFLAGS="-Wall" +GARROW_CXXFLAGS="-Wall" AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug], [Use debug flags (default=no)])],