Commit graph

6 commits

Author SHA1 Message Date
Andreas Gnau
df25ff7ce0
libbbfdm-api: proper parenthesis in macros
When using macros, both any occurence of arguments and the macro itself
have to be enclosed in parenthesis to prevent unintended behaviour with
operator precedence.

For now, only fix the one causing a -Wint-conversion warning in GCC 14
when using constructs like these, where two macros are used together and
expand to both two comparisons and two nested ternary expression.

dhcpmngr.c:502:41: error: pointer/integer type mismatch in conditional expression [-Wint-conversion]
 502 |  if (DM_STRCMP(parent_s, section_name(s)) != 0)

Given the very heavy use of macros in this project, there are probably
more instances of this issue in the code and it can cause actual logic
errors. While at it, double evaluation should also be checked for.

Link: http://web.archive.org/web/20140127211232/http://docs.freebsd.org/info/cpp/cpp.info.Macro_Parentheses.html
Link: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/macro-parentheses.html
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2025-12-15 13:22:46 +01:00
Suvendhu Hansa
8f72146f0f Handling sections with missing instance in dmmap 2025-11-28 17:18:59 +05:30
Suvendhu Hansa
3f56ad4595 bbfdm api for reverting dmmap changes 2025-05-14 20:51:16 +05:30
Amin Ben Romdhane
56937cd498
Update reference db refresh 2025-04-15 15:20:55 +00:00
Amin Ben Romdhane
45a6d7e0c7 Redesign the handling of references based on uci reference_translation 2025-04-08 09:29:09 +02:00
Amin Ben Romdhane
b7e5e0de5a Introduce a new libbbfdm-api library version 2 2025-01-27 15:29:04 +01:00
Renamed from libbbfdm-api/dmuci.h (Browse further)