[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61846] Try to disable nullability-completeness for flock.c for Dar

From: Boud Roukema
Subject: [bug #61846] Try to disable nullability-completeness for flock.c for Darwin
Date: Tue, 18 Jan 2022 06:44:57 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0


                 Summary: Try to disable nullability-completeness for flock.c
for Darwin
                 Project: Maneage
            Submitted by: boud
            Submitted on: Tue 18 Jan 2022 11:44:55 AM UTC
                Category: Software
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any



Nullability completeness appears to be a requirement in recent
Darwin/xnu systems with an Xcode 12.5.1 [1] environment for
compiling C and C++ programs. One recent fix in Maneage was
implemented in commit a981196 [2], but this does not seem to
apply to flock, which is built by

This commit 5690ab5 [0] adds `CFLAGS=-Wno-nullability-completeness' to
the `build_program' instruction in with the
aim of compiling flock with this flag.

This commit [0] should hopefully solve the bug. In the source of
flock-0.2.3, `' includes `-Werror' as a C compile
flag, meaning that any warnings will be treated as errors.
The nullability attributes appear to only be used by clang,
not gcc. By disabling the `nullability-completeness' warning,
i.e. with `-Wno-nullability-completeness', the warning will
be omitted, so the Clang compiler should not consider there
to be a compilation error.

Since `flock' is the final tool built in,
it seems that it is the only one that needs this compile
option for Darwin/xnu systems [3].

An alternative option for someone who knows what flock does
and has verified that the updates are safe could be to update
to flock-0.3.0 or flock-0.4.0 [4]. However, this tool is
used early in the whole build system, so the consequences of
an update would need to be well checked.

[3] macOS adds GUIS on top of Darwin/xnu:


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]