Skip to content

Commit fbd0685

Browse files
committed
suppress -Wmaybe-uninitialized in #12019
[ghstack-poisoned]
2 parents b90a5a9 + 8782fb2 commit fbd0685

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/build_size_test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ EXTRA_BUILD_ARGS="${@:-}"
1515
# TODO(#8357): Remove -Wno-int-in-bool-context
1616
# TODO: Replace -ET_HAVE_PREAD=0 with a CMake option.
1717
# FileDataLoader used in the size_test breaks baremetal builds with pread when missing.
18-
COMMON_CXXFLAGS="-fno-exceptions -fno-rtti -Wall -Werror -Wno-int-in-bool-context -DET_HAVE_PREAD=0"
18+
# -Werror=maybe-uninitialized causes failures with GCC 9.5, which we
19+
# -currently use in CI. There were known issues with this warning and
20+
# -std::optional: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635
21+
COMMON_CXXFLAGS="-fno-exceptions -fno-rtti -Wall -Werror -Wno-int-in-bool-context -Wno-maybe-uninitialized -DET_HAVE_PREAD=0"
1922

2023
cmake_install_executorch_lib() {
2124
echo "Installing libexecutorch.a"

0 commit comments

Comments
 (0)