]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: remove spaces before literal operator 62475/head
authorKefu Chai <tchaikov@gmail.com>
Tue, 25 Mar 2025 04:17:35 +0000 (12:17 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 25 Mar 2025 04:25:46 +0000 (12:25 +0800)
commitc578d5393888a7ff07fdbd152a76ea83c78b81ec
tree4c0e0ec0a94bd5b3215eef9817c9de3990390db9
parentd818d464ac112fb6cfd326ecb0deec1856a9e2a1
common: remove spaces before literal operator

clang 20 complains when compiling a user-defined literal operator
with spaces before the underscore. so let's drop the space to be
compliant to
[CWG2521](https://cplusplus.github.io/CWG/issues/2521.html).

```
/home/kefu/dev/ceph/src/common/options.h:415:41: warning: identifier '_min' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
  415 | constexpr unsigned long long operator"" _min (unsigned long long min) {
      |                              ~~~~~~~~~~~^~~~
      |                              operator""_min
```

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/common/options.h