Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EBED6200B95 for ; Tue, 13 Sep 2016 03:28:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EA783160AC8; Tue, 13 Sep 2016 01:28:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3F07E160AB8 for ; Tue, 13 Sep 2016 03:28:51 +0200 (CEST) Received: (qmail 7028 invoked by uid 500); 13 Sep 2016 01:28:50 -0000 Mailing-List: contact dev-help@quickstep.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@quickstep.incubator.apache.org Delivered-To: mailing list dev@quickstep.incubator.apache.org Received: (qmail 7012 invoked by uid 99); 13 Sep 2016 01:28:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2016 01:28:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C1D771A0ACA for ; Tue, 13 Sep 2016 01:28:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id EEocKsYXwhdV for ; Tue, 13 Sep 2016 01:28:48 +0000 (UTC) Received: from mail-vk0-f51.google.com (mail-vk0-f51.google.com [209.85.213.51]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 751645F39C for ; Tue, 13 Sep 2016 01:28:48 +0000 (UTC) Received: by mail-vk0-f51.google.com with SMTP id f76so160978648vke.0 for ; Mon, 12 Sep 2016 18:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=MKQ8VL8IzzykxcCh3PuJ4fxMjpVMQuKmGidXLSp8esk=; b=AT6b+QJyTFE24houXAoJ0FF6+eMifh4AQf1eMWYHTJDoxrYe5ydQiGNotyhRGO4Pxe jjKfNHggM9FlyTE1Pu5fnsZPUXk9Edis/vpNTCoUA19agWi9e/OVEEEHtPifugRbxSyK 5ZqoPhwh5S5jos9F9OGCh4ejTSNXlEOI28UDVdCSxSrb5OmjW2N42296W89mnEySUbSt W6CNCvDMTezWWq0o8iRwpauW1jepkFJoKgD33dk/vOaPJKVKyzggcx2NKpVm0uSyfJcE WaTSDCxRNz+8Ah33teCZxpcDf9LM1VuQ73Wc8z34xYnl3KPN/Ux6HyQ/pOTLxycHnYly 9Kwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MKQ8VL8IzzykxcCh3PuJ4fxMjpVMQuKmGidXLSp8esk=; b=laEZ3z0BM1hMSh3BL+QzoKtamCSrshrmtvhOfjsNqW8NEYfG64qps/Q0sAclSkZsP+ QjITA7Khp6bExHLvUMQpVVJH4sO3ty2XBnrILthoe4MoJH+w34pMQveOoX8sLgBqmNbz piOaQwSB/rHP12HkpSeLfmonK9LWSSstq8JkPrs+O2lGL02btafpiCVp9mmk1ad86w3n CgMZmugcl74PzcU/Og1r2JDFb451Zw6BBaQkXWMaGxcOCUc5zLy1OTa4g7IhhD9HUBho vXhjW0LTHgOjiQZk6AZi/RngN/bWdrV7jD866pupPdEh40idG/fR5Y8B8fQIaQNh0Ylm aDhA== X-Gm-Message-State: AE9vXwM/O0sTwzUr56oKT8YJ1M55HM7o7w1OM2WeLJvtzdhg172n5fLGNBDW8sQ5vhHOWu0BEZc0p/gj/HrS4w== X-Received: by 10.31.96.197 with SMTP id u188mr15859434vkb.88.1473730121749; Mon, 12 Sep 2016 18:28:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.1.225 with HTTP; Mon, 12 Sep 2016 18:28:41 -0700 (PDT) From: Marc Spehlmann Date: Mon, 12 Sep 2016 20:28:41 -0500 Message-ID: Subject: compiler warnings- anyone seen this? To: dev@quickstep.incubator.apache.org Content-Type: multipart/alternative; boundary=001a114e63d466daf5053c59885b archived-at: Tue, 13 Sep 2016 01:28:52 -0000 --001a114e63d466daf5053c59885b Content-Type: text/plain; charset=UTF-8 I get annoying compiler warnings upgraded to errors when building with clang 3.8, bison 3.0.4, flex 2.6.0: [3/170] Building CXX object parser/CMakeFiles/quickstep_parser_SqlLexer.dir/SqlLexer_gen.cpp.o FAILED: parser/CMakeFiles/quickstep_parser_SqlLexer.dir/SqlLexer_gen.cpp.o ccache /usr/bin/clang++-3.8 -DQUICKSTEP_ENABLE_VECTOR_COPY_ELISION_SELECTION -DQUICKSTEP_ENABLE_VECTOR_PREDICATE_SHORT_CIRCUIT -DYY_NO_UNISTD_H -D_ISOC11_SOURCE -I../ -I. -isystem ../third_party/protobuf/src -isystem ../third_party/googletest/googletest/include -I../third_party/benchmark/include -Ithird_party/gflags/include -I../third_party/glog/src -Ithird_party -I../third_party/re2 -I../third_party/tmb/include -I../third_party/protobuf_cmake/../protobuf/src -std=c++14 -Wno-tautological-compare -Wall -pedantic -Werror -Wno-extended-offsetof -march=native -Wno-return-type-c-linkage -Wno-sign-compare -MMD -MT parser/CMakeFiles/quickstep_parser_SqlLexer.dir/SqlLexer_gen.cpp.o -MF parser/CMakeFiles/quickstep_parser_SqlLexer.dir/SqlLexer_gen.cpp.o.d -o parser/CMakeFiles/quickstep_parser_SqlLexer.dir/SqlLexer_gen.cpp.o -c parser/SqlLexer_gen.cpp /home/marc/workspace/incubator-quickstep/build/parser/SqlLexer_gen.cpp:1370:84: error: implicit conversion of NULL constant to 'bool' [-Werror,-Wnull-conversion] if ( ! ( yyg->yy_buffer_stack ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] : __null) ) { ~ ^~~~~~ false [... condensed because there were a total of 12] /home/marc/workspace/incubator-quickstep/build/parser/SqlLexer_gen.cpp:3494:82: error: implicit conversion of NULL constant to 'bool' [-Werror,-Wnull-conversion] while(( yyg->yy_buffer_stack ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] : __null)){ ~~~~~ ^~~~~~ false 12 errors generated. The way I have been getting around this is to add set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-null-conversion") to the CMakeLists.txt Anyone have a better way? -Marc --001a114e63d466daf5053c59885b--