Skip to content

Warning about uv_fs_lchown being defined twice #30264

Closed
@fingolfin

Description

After PR #30046 was merged, in C code including julia.h, I am now seeing this warning:

In file included from /home/travis/build/gap-system/gap/julia-7920a2a1fb/include/julia/ios.h:7:0,
                 from /home/travis/build/gap-system/gap/julia-7920a2a1fb/include/julia/libsupport.h:13,
                 from /home/travis/build/gap-system/gap/julia-7920a2a1fb/include/julia/julia.h:12,
                 from src/gap.c:54:
/home/travis/build/gap-system/gap/julia-7920a2a1fb/include/julia/uv.h:1472:15: error: redundant redeclaration of ‘uv_fs_lchown’ [-Werror=redundant-decls]
 UV_EXTERN int uv_fs_lchown(uv_loop_t* loop,
               ^
/home/travis/build/gap-system/gap/julia-7920a2a1fb/include/julia/uv.h:1466:15: note: previous declaration of ‘uv_fs_lchown’ was here
 UV_EXTERN int uv_fs_lchown(uv_loop_t* loop,
               ^

Indeed, the declaration appears twice in a row. I'd submit a PR to https://github.com/JuliaLang/libuv (assuming that is the right repository?), but I have a hard time figuring out which branch there is relevant -- there are 32 branches on that repository with various unclear names ("382" is my "favorite" ;-) ). The default branch is julia-uv2, but that one was last updated in July.

Activity

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

Metadata

Assignees

Labels

external dependenciesInvolves LLVM, OpenBLAS, or other linked libraries

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions