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

[bug] error: variable 'Column' set but not used [-Werror,-Wunused-but-set-variable] #849

Closed
agrajag9 opened this issue Feb 27, 2023 · 3 comments

Comments

@agrajag9
Copy link

UINT32 Column = 0;

See build log here: https://bz-attachments.freebsd.org/attachment.cgi?id=240459

@agrajag9
Copy link
Author

obj/acpisrc ../../../source/tools/acpisrc/asconvrt.c
../../../source/tools/acpisrc/asconvrt.c:1233:29: error: variable 'Column' set but not used [-Werror,-Wunused-but-set-variable]
    UINT32                  Column = 0;
                            ^
1 error generated.
gmake[2]: *** [../Makefile.rules:20: obj/asconvrt.o] Error 1

@agrajag9
Copy link
Author

Looks like some others as well:

../../../source/compiler/aslrestype2s.c:1553:29: error: variable 'PinCount' set but not used [-Werror,-Wunused-but-set-variable]
    UINT32                  PinCount = 0;
                            ^
../../../source/compiler/aslrestype2s.c:1739:29: error: variable 'PinCount' set but not used [-Werror,-Wunused-but-set-variable]
    UINT32                  PinCount = 0;
                            ^
../../../source/compiler/aslrestype2s.c:1939:29: error: variable 'PinCount' set but not used [-Werror,-Wunused-but-set-variable]
    UINT32                  PinCount = 0;
                            ^
3 errors generated.

@sacdintel
Copy link
Collaborator

I believe this issue has been fixed after merging PR #851 so will go ahead and close it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants