Skip to content

Compile warnings #5

@DavidSagan

Description

@DavidSagan
[ 25%] Building CXX object CMakeFiles/yaml_c_wrapper.dir/src/yaml_c_wrapper.cpp.o
/Users/dcs16/BmadBase/pals-cpp/src/yaml_c_wrapper.cpp:376:16: warning: 'deep_copy_internal' has C-linkage specified, but returns user-defined type 'YAML::Node' which is incompatible with C [-Wreturn-type-c-linkage]
  376 |     YAML::Node deep_copy_internal(const YAML::Node& node) {
      |                ^
/Users/dcs16/BmadBase/pals-cpp/src/yaml_c_wrapper.cpp:396:16: warning: 'replace_internal' has C-linkage specified, but returns user-defined type 'YAML::Node' which is incompatible with C [-Wreturn-type-c-linkage]
  396 |     YAML::Node replace_internal(YAML::Node name, std::map<std::string, YAML::Node>* seen) {
      |                ^
/Users/dcs16/BmadBase/pals-cpp/src/yaml_c_wrapper.cpp:406:16: warning: 'expand_internal' has C-linkage specified, but returns user-defined type 'YAML::Node' which is incompatible with C [-Wreturn-type-c-linkage]
  406 |     YAML::Node expand_internal(YAML::Node node, std::map<std::string, YAML::Node>* seen) {
      |                ^
3 warnings generated.

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