Skip to content

Commit

Permalink
transaction: Ignore unused variable warnings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
3v1n0 committed Jan 19, 2024
1 parent c0210a5 commit 79364f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Package pam provides a wrapper for the PAM application API.
package pam

//#cgo CFLAGS: -Wall -std=c99
//#cgo CFLAGS: -Wall -Wno-unused-variable -std=c99
//#cgo LDFLAGS: -lpam
//
//#include "transaction.h"
Expand Down

0 comments on commit 79364f5

Please sign in to comment.