From dad9f2a0a452b188e5f45892a0882fddc50c8db9 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath
Date: Sat, 4 Feb 2023 23:27:35 +0530
Subject: [PATCH] crt: Fix misleading indentation warning with gcc
This fixes the following warning
secapi/strerror_s.c:21:7: warning: this 'if' clause does not guard.
LIU Hao wrote:
在 2023-02-04 20:51, Théo Cavignac 写道:
Sorry, I misclicked and sent an half written mail.
So as I tried to expose, I am using MinGW with following configuration:
This looks like a GCC issue. Reported here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673
Workaround: -f
在 2023-02-04 02:45, Christian Franke 写道:
A minor enhancement which detects cases like:
int flags = _O_CREAT | O_TRUNC;
if (binary)
flags |= O_BINARY;
// "warning: _open(..._O_CREAT...): missing argument "
int fd = open(name, flags);
Thanks for the patch. This patch looks goo
在 2023-02-04 20:51, Théo Cavignac 写道:
Sorry, I misclicked and sent an half written mail.
So as I tried to expose, I am using MinGW with following configuration:
This looks like a GCC issue. Reported here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673
--
Best regards,
LIU Hao
Open
Sorry, I misclicked and sent an half written mail.
So as I tried to expose, I am using MinGW with following configuration:
Using built-in specs.
COLLECT_GCC=x86_64-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/lto-wrapper
Target: x86_64-w64-mingw32
Con
Hello,
As implied by the subject I isolated an internal compiler error that is
specific to MinGW (stock GCC
Minimal code
/*
/usr/bin/x86_64-w64-mingw32-gcc \
-O2 -fstack-clash-protection -c \
-freport-bug \
-o f.o f.c
*/
void exit(int) __attribute__((