Skip to content

Commit

Permalink
[grpc] silence a few build warnings (#2011)
Browse files Browse the repository at this point in the history
Restore the previously ignored warnings and add 'no-attributes'
`warning: always_inline function might not be inlinable [-Wattributes]`
  • Loading branch information
ovalenti authored Jan 20, 2025
1 parent e024d11 commit 887506d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions builder/install/40-grpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

set -e

CXXFLAGS=""
if [ -f /etc/redhat-release ]; then
CXXFLAGS="-Wno-error=class-memaccess -Wno-ignored-qualifiers -Wno-stringop-truncation -Wno-cast-function-type"
fi
export CXXFLAGS="-Wno-error=class-memaccess -Wno-ignored-qualifiers -Wno-stringop-truncation -Wno-cast-function-type -Wno-attributes"

cd third_party/grpc

Expand Down Expand Up @@ -33,5 +30,5 @@ cmake \
-DCMAKE_CXX_STANDARD=17 \
../..

make ${NPROCS:+-j ${NPROCS}} CXXFLAGS="${CXXFLAGS}"
make ${NPROCS:+-j ${NPROCS}}
make install

0 comments on commit 887506d

Please sign in to comment.