History log of /openbmc/libmctp/range.h (Results 1 – 4 of 4)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 20f38623 11-Dec-2024 Matt Johnston <matt@codeconstruct.com.au>

core: range: Make simpler for -Wpedantic

Replace MIN and MAX with simple conditionals. These evaluate multiple
times, but all uses in libmctp have been audited to be side-effect free.

Using brace g

core: range: Make simpler for -Wpedantic

Replace MIN and MAX with simple conditionals. These evaluate multiple
times, but all uses in libmctp have been audited to be side-effect free.

Using brace grouped expressions is non-portable so -Wpedantic doesn't
support it. A #pragma can't be used to disable the warning since it
occurs at the MAX() macro "callsite", not in the header file.

../serial.c:39:9: warning: ISO C forbids braced-groups
within expressions [-Wpedantic]
39 | ({

Change-Id: I099a3aa8cbd6730129b9da0fd723342ccb1f7e64
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>

show more ...


# 99d8f126 01-Jul-2022 Younghyun Park <younghyunpark@google.com>

range.h: Define typeof with __typeof__

Depending on toolchains, "typeof" is used instead of "__typeof__".
This is to avoid a compile error caused by missing "typeof".

Signed-off-by: Younghyun Park

range.h: Define typeof with __typeof__

Depending on toolchains, "typeof" is used instead of "__typeof__".
This is to avoid a compile error caused by missing "typeof".

Signed-off-by: Younghyun Park <younghyunpark@google.com>
Change-Id: I9c224151cee32fdb71e1caefb25ea53cc475ff42

show more ...


# af0cd622 28-Jun-2022 Moritz Fischer <moritzf@google.com>

range.h: Avoid duplicate definitions of MIN/MAX

Avoid duplicate definitions of MIN()/MAX() macros in environments
that already define them

Signed-off-by: Moritz Fischer <moritzf@google.com>
Change-

range.h: Avoid duplicate definitions of MIN/MAX

Avoid duplicate definitions of MIN()/MAX() macros in environments
that already define them

Signed-off-by: Moritz Fischer <moritzf@google.com>
Change-Id: I1bdb26b54b641218821c059021dcca0062d3d0a3

show more ...


Revision tags: v0.11
# 4622cadf 03-Nov-2020 Andrew Jeffery <andrew@aj.id.au>

astlpc: Extract MIN()/MAX() to range.h

Enable reuse beyond astlpc.c.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I090358882b2c4b9cb1a9393a9ae38dfbe80335e9