From ac95bb09f4e9160adb6ed2ff2f617809c8c709ee Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Mon, 23 Aug 2021 17:40:06 -0700 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=91=A9=E2=80=8D=F0=9F=8C=BE=20Remove?= =?UTF-8?q?=20bitbucket-pipelines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Louise Poubel --- bitbucket-pipelines.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 bitbucket-pipelines.yml diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml deleted file mode 100644 index b1b8ba90..00000000 --- a/bitbucket-pipelines.yml +++ /dev/null @@ -1,27 +0,0 @@ -image: ubuntu:xenial - -pipelines: - default: - - step: - script: - - echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial main" > /etc/apt/sources.list.d/gazebo-stable.list - - apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys D2486D2DD83DB69272AFE98867170598AF249743 - - apt-get update - - apt-get -y install - cmake build-essential lcov curl git libprotobuf-dev protobuf-compiler libprotoc-dev - libignition-cmake-dev - libignition-math4-dev - libignition-tools-dev - ruby - cppcheck - # Ignition msgs - - mkdir build - - cd build - - cmake .. -DCMAKE_BUILD_TYPE=coverage -DCMAKE_INSTALL_PREFIX=/usr - - make -j4 - - make test ARGS="-V" CTEST_OUTPUT_ON_FAILURE=1 - - make coverage - - bash <(curl -s https://codecov.io/bash) - # code_check - - cd .. - - sh tools/code_check.sh From cd1bd5b6fd9a1a463ef7d94c07240b0f9059d406 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Tue, 24 Aug 2021 23:35:54 -0700 Subject: [PATCH 2/2] Backport pragmas to ignore unused param warnings Signed-off-by: Steve Peters --- src/Generator.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Generator.cc b/src/Generator.cc index f703fb8f..7fa213a0 100644 --- a/src/Generator.cc +++ b/src/Generator.cc @@ -122,6 +122,8 @@ bool Generator::Generate(const FileDescriptor *_file, printer.Print("#ifndef _MSC_VER\n", "name", "includes"); printer.Print("#pragma GCC diagnostic ignored \"-Wshadow\"\n", "name", "includes"); + printer.Print("#pragma GCC diagnostic ignored \"-Wunused-parameter\"\n", + "name", "includes"); printer.Print("#else\n", "name", "includes"); printer.Print("#pragma warning(disable: 4244 4267 4100 4244 4512", "name", "includes");