[libc-commits] [libc] [libc] Fix gcc warnings. (PR #240958)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Wed Nov 11 00:03:35 PST 2026


================
@@ -84,8 +84,9 @@ class LlvmLibcFOpenModeTest
 
     FILE *existing = LIBC_NAMESPACE::fopen(TEST_FILE, mode);
     EXPECT_THAT(existing, Fails(EEXIST, static_cast<void *>(nullptr)));
-    if (existing != nullptr)
+    if (existing != nullptr) {
----------------
labath wrote:

Any chance we could upgrade our "ambiguous else blocker" to not need this?

https://github.com/llvm/llvm-project/pull/240958


More information about the libc-commits mailing list