Skip to content

MSBuild warnings C5105: macro expansion producing 'defined' has undefined behavior #310

Closed

Description

@jacobperron

Building the latest versions of Eloquent or Foxy from source produces several warnings on Windows with the following message:

C5105: macro expansion producing 'defined' has undefined behavior

For example (foxy): Build Status

Seems to be coming from the following rcutils source files on the foxy branch:

  • rcutils\src\filesystem.c
  • rcutils\src\logging.c
  • rcutils\src\process.c
  • rcutils\src\shared_library.c
  • rcutils\src\testing\fault_injection.c
  • rcutils\src\time_win32.c

I have not observed the warning on Dashing or Rolling.

Activity

  1. added
    bug
    on Nov 11, 2020
  2. clalancette commented on Dec 3, 2020

    @clalancette
    Contributor

    Ah yeah, we probably need to backport #311 to fix that.

  3. self-assigned this
    on Dec 3, 2020
  4. clalancette commented on Dec 10, 2020

    @clalancette
    Contributor

    I backported this to Foxy. I'm not going to bother with Eloquent since this is the last sync, so I'll close this out.

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions