summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/pytorch.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/pytorch.spec b/packaging/pytorch.spec
index 77c2975ea1..6273c37782 100644
--- a/packaging/pytorch.spec
+++ b/packaging/pytorch.spec
@@ -120,8 +120,8 @@ export PYTHONPATH="$PYTHONPATH:./packaging/python_module"
mkdir -p build
pushd build
alias python=python3
-CFLAGS=`echo $CFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-array-parameter -Wno-missing-braces -Wno-nonnull|"`
-CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-array-parameter -Wno-missing-braces -Wno-nonnull|"`
+CFLAGS=`echo $CFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-missing-braces -Wno-nonnull -Wno-tautological-compare -Wno-incompatible-pointer-types|g"`
+CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-missing-braces -Wno-nonnull -Wno-tautological-compare|g"`
cmake .. \
-DCMAKE_INSTALL_PREFIX=./install \
-DCMAKE_VERBOSE_MAKEFILE=1 \