Skip to content

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

@jacobperron

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions