Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C warning in graphviz dependency #529

Closed
philippgille opened this issue Oct 17, 2023 · 3 comments
Closed

C warning in graphviz dependency #529

philippgille opened this issue Oct 17, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@philippgille
Copy link

philippgille commented Oct 17, 2023

What happened

Hi 👋 , thanks for creating and maintaining this project!

I recently updated tbls from v1.68.2 to latest (1.70.1 as of today), and got some warnings when installing via Go 1.21.3.

Not sure about the impact on tbls functionality though.

What you expected to happened

I expected no warnings during installation

What stack trace or error message from tbls did you see?

$ go install github.com/k1LoW/[email protected]
# github.com/goccy/go-graphviz/internal/ccall
In file included from common.c:5:
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:165:35: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2540:24: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2596:35: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2602:35: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2612:31: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2623:31: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2628:31: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2641:28: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2650:33: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2659:32: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2668:32: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
# github.com/goccy/go-graphviz/internal/ccall
In file included from dotgen.c:15:
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/dotgen/dotsplines.c:2310:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
/Users/[redacted]/go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/dotgen/dotsplines.c:2504:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]

Anything else we need to know?

I don't remember seeing that error when I installed the previous version, but trying just now with v1.68.2 it's the same warnings that are shown.

Environment

  • tbls version: 1.70.1
  • Database version: /
  • OS ( Ubuntu bionic, macOS Calalina, WSL2, etc ): macOS Ventura
  • Shell ( bash, zsh, poworshell, etc ): Bash
  • Stacktrace or error message from tbls ( If you can, set DEBUG=1): /
  • Config ( .tbls.yml ): /
@philippgille philippgille added the bug Something isn't working label Oct 17, 2023
@k1LoW
Copy link
Owner

k1LoW commented Oct 17, 2023

@philippgille Thank you for your report!!

This is a go-graphviz related issue.
For example goccy/go-graphviz#77
At this time it is a warning, so we do not consider it a major problem in tbls.

@philippgille
Copy link
Author

Ah great to see there's already a PR for the library. Perfect 👌

@k1LoW
Copy link
Owner

k1LoW commented Oct 25, 2024

An amazing solution solved this problem!

https://github.com/goccy/go-graphviz/releases/tag/v0.2.0

Thank you @goccy !!!

ref: #625

@k1LoW k1LoW closed this as completed Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants