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

transaction: Ignore unused variable warnings #22

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

3v1n0
Copy link
Collaborator

@3v1n0 3v1n0 commented Jan 19, 2024

We may get some warnings when generating code as:
warning: unused variable ‘_cgo_a’

This is something due to the fact we use -Wall that is not something golang upstream suggests.

However, since this is the only warning we may have and it's not a super relevant one, we can ensure we ignore it.

We may get some warnings when generating code as:
  warning: unused variable ‘_cgo_a’

This is something due to the fact we use `-Wall` that is not something
golang upstream suggests.

However, since this is the only warning we may have and it's not a super
relevant one, we can ensure we ignore it.
@3v1n0 3v1n0 force-pushed the prevent-unused-var branch from ef2e8b7 to d11b37f Compare January 19, 2024 15:23
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0ba49d9) 82.31% compared to head (d11b37f) 82.31%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #22   +/-   ##
=======================================
  Coverage   82.31%   82.31%           
=======================================
  Files           2        2           
  Lines         147      147           
=======================================
  Hits          121      121           
  Misses         23       23           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

didrocks added a commit to ubuntu/authd that referenced this pull request Jan 19, 2024
Bump go-pam requirement so that we do ignore unused-variables warning on
cgo generated code.

It basically includes msteinert/pam#22

Closes: #179 

UDENG-2104
@msteinert msteinert merged commit e707495 into msteinert:master Jan 31, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants