lilypond-devel
[Top][All Lists]
Advanced

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

Re: clang compiler warnings


From: Aaron Hill
Subject: Re: clang compiler warnings
Date: Tue, 27 Feb 2024 03:57:20 -0800

On 2024-02-27 3:32 am, Werner LEMBERG wrote:
Looking at some MacPorts log files from Mac OS 14.2.1 (which uses the
system's `clang` compiler) I see

```
flower/include/flower-proto.hh:26:30:
  warning: implicit conversion changes signedness:
           'int' to 'const vsize' (aka 'const unsigned long')
           [-Wsign-conversion]
inline constexpr vsize VPOS (-1);
                       ~~~~  ^~
```

for almost all C++ fies, making the log file quite noisy.  Dan, any
idea how to fix this gracefully?

Since vsize is just a typedef of size_t, would it make sense to use SIZE_MAX when defined VPOS instead of a manual cast of negative one?


-- Aaron Hill



reply via email to

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