Skip to content

Compiler warnings from capnproto when building via add_subdirectory #138

Closed
@ryanofsky

Description

@ryanofsky

Originally posted by @Sjors in bitcoin/bitcoin#31741 (review)

On (M4) macOS 15.2 I get a flood of warnings, which means I can't use -DWERROR=ON:

In file included from /opt/homebrew/include/capnp/common.h:31:
/opt/homebrew/include/kj/windows-sanity.h:39:6: warning: '_WIN32' is not defined, evaluates to 0 [-Wundef]
   39 | #if !_WIN32 && !__CYGWIN__
      |      ^
/opt/homebrew/include/kj/windows-sanity.h:39:17: warning: '__CYGWIN__' is not defined, evaluates to 0 [-Wundef]
   39 | #if !_WIN32 && !__CYGWIN__
      |     

/opt/homebrew/include/capnp/common.h:33:5: warning: 'CAPNP_DEBUG_TYPES' is not defined, evaluates to 0 [-Wundef]

/opt/homebrew/include/capnp/raw-schema.h:26:5: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef]

/opt/homebrew/include/kj/async-prelude.h:34:6: warning: 'KJ_NO_EXCEPTIONS' is not defined, evaluates to 0 [-Wundef]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions