From a36bed7c4b446ff38a08128d49d4c5dce92dbfab Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Tue, 18 Jul 2023 13:59:20 -0700 Subject: [PATCH] Werror --- .github/workflows/tests.yml | 2 +- SConstruct | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 62e763dcd2..d3c95f5cd4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,7 +3,7 @@ name: tests on: [push, pull_request] env: - RUN: docker run -v $GITHUB_WORKSPACE:/project/opendbc -w /project/opendbc -e PYTHONWARNINGS="default::DeprecationWarning" --shm-size 1G --rm opendbc /bin/bash -c + RUN: docker run -v $GITHUB_WORKSPACE:/project/opendbc -w /project/opendbc -e PYTHONWARNINGS="error,default::DeprecationWarning" --shm-size 1G --rm opendbc /bin/bash -c BUILD: | docker pull $(grep -ioP '(?<=^from)\s+\S+' Dockerfile) || true docker pull ghcr.io/commaai/opendbc:latest || true diff --git a/SConstruct b/SConstruct index a9d2ba8536..d8f40740bf 100644 --- a/SConstruct +++ b/SConstruct @@ -61,6 +61,7 @@ Export('cereal', 'messaging') envCython = env.Clone() envCython["CPPPATH"] += [np.get_include()] envCython["CCFLAGS"] += ["-Wno-#warnings", "-Wno-shadow", "-Wno-deprecated-declarations"] +envCython["CCFLAGS"].remove("-Werror") python_libs = [] if arch == "Darwin":