Skip to content

Backport #5796: Add missing #include <cstdint> in DDSSQLFilter headers to 2.6.x#6332

Open
PavelGuzenfeld wants to merge 1 commit into
eProsima:2.6.xfrom
PavelGuzenfeld:backport/cstdint-ddssqlfilter-2.6.x
Open

Backport #5796: Add missing #include <cstdint> in DDSSQLFilter headers to 2.6.x#6332
PavelGuzenfeld wants to merge 1 commit into
eProsima:2.6.xfrom
PavelGuzenfeld:backport/cstdint-ddssqlfilter-2.6.x

Conversation

@PavelGuzenfeld

Copy link
Copy Markdown

Summary

Backport of PR #5796 to the 2.6.x branch.

GCC 13+ and GCC 15+ no longer provide transitive includes for fixed-width integer types (uint8_t, uint32_t, etc.). The following DDSSQLFilter headers use these types without explicitly including <cstdint>, causing compilation failures:

  • DDSFilterCompoundCondition.hpp — uses uint8_t in OperationKind enum and member variable
  • DDSFilterPredicate.hpp — uses uint8_t in OperationKind enum
  • DDSFilterValue.hpp — uses uint64_t, int64_t in union members

This fix was already applied to master, 3.1.x, 2.14.x, and 2.10.x but the 2.6.x backport was skipped. Since ROS 2 Humble depends on Fast-DDS 2.6.x and is supported until 2027, this backport is important for users building with modern compilers.

Changes

Added #include <cstdint> to:

  • src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterCompoundCondition.hpp
  • src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterPredicate.hpp
  • src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterValue.hpp

References

GCC 13+ and GCC 15+ no longer provide transitive includes for
fixed-width integer types (uint8_t, uint32_t, etc.). The DDSSQLFilter
headers use these types without explicitly including <cstdint>, causing
compilation failures with modern compilers.

This is a backport of the fix from PR eProsima#5796 (which was applied to
master, 3.1.x, 2.14.x, and 2.10.x) to the 2.6.x branch. ROS 2 Humble
depends on Fast-DDS 2.6.x and is supported until 2027.

Refs: eProsima#5790

Signed-off-by: Pavel Guzenfeld <67074795+PavelGuzenfeld@users.noreply.github.com>
@PavelGuzenfeld

Copy link
Copy Markdown
Author

Ping for review — no activity since submission. Happy to rebase or adjust if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant