Commit 222ff7a94e for perl
commit 222ff7a94e71d95bf62fa09ed5895a99ca55f3e7
Author: Yves Orton <demerphq@gmail.com>
Date: Mon Nov 16 16:52:34 2026 +0100
Configure: avoid an empty conditional in the open flag probe
Clang warns about the empty if body, so -Werror makes Configure miss the
O_* constants. Use a void cast to check O_RDONLY.
diff --git a/Configure b/Configure
index e8e7067048..1c3a02752c 100755
--- a/Configure
+++ b/Configure
@@ -13375,7 +13375,7 @@ $cat >try.c <<EOCP
#include <stdlib.h>
#endif
int main() {
- if(O_RDONLY);
+ (void)O_RDONLY;
#ifdef O_TRUNC
exit(0);
#else