Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] linux warning fixes #1927

Merged
merged 4 commits into from
Jan 22, 2025
Merged

[core] linux warning fixes #1927

merged 4 commits into from
Jan 22, 2025

Conversation

rex-schilasky
Copy link
Contributor

Description

Integrated and reordered all config/builder/attributes header in CMakeList.txt

Fixed some minor warnings for linux platform:

  • File: ecal_log_provider.cpp

    • Type: Member initialization order (-Wreorder)
    • Details: m_attributes is initialized after m_created.
  • File: ecal_log_provider.cpp

    • Type: Unused function (-Wunused-function)
    • Details: The function isDirectory is defined but not used.
  • File: ecal_log_receiver.cpp

    • Type: Member initialization order (-Wreorder)
    • Details: m_attributes is initialized after m_created.
  • File: ecal_subscriber_impl.cpp

    • Type: Member initialization order (-Wreorder)
    • Details: m_attributes is initialized after m_receive_time.
  • File: ecal_service_server_impl.cpp

    • Type: Member initialization order (-Wreorder)
    • Details: m_created is initialized after m_service_name.

@rex-schilasky rex-schilasky added the cherry-pick-to-NONE Don't cherry-pick these changes label Jan 22, 2025
@rex-schilasky rex-schilasky added this to the eCAL 6 milestone Jan 22, 2025
@rex-schilasky rex-schilasky requested a review from Peguen January 22, 2025 08:45
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

namespace{
namespace
{
#if 0 // TODO: Can we remove this?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: preprocessor condition is always 'false', consider removing both the condition and its contents [readability-avoid-unconditional-preprocessor-if]

#if 0 // TODO: Can we remove this?
 ^

namespace{
namespace
{
#if 0 // TODO: Can we remove this?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, can be removed

@rex-schilasky rex-schilasky merged commit c601d1d into master Jan 22, 2025
21 checks passed
@rex-schilasky rex-schilasky deleted the core/linux-warning-fixes branch January 22, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-to-NONE Don't cherry-pick these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants