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);
--
Regards,
Christian
From 30ecfe61489d0381656751341e036feb1b66398d Mon Sep 17 00:00:00 200
LIU Hao wrote:
在 2023/2/2 06:41, Christian Franke 写道:
This patch allows to use _FORTIFY_SOURCE=3 which is also supported by
GLIBC headers.
Thanks. This patch looks good to me. Pushed now.
BTW does clang support this as well? I suspect we should add a check
for clang too
Good point. Rece