Skip to content

Commit d11b37f

Browse files
committed
transaction: Ignore unused variable warnings
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.
1 parent 0ba49d9 commit d11b37f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Package pam provides a wrapper for the PAM application API.
22
package pam
33

4-
//#cgo CFLAGS: -Wall -std=c99
4+
//#cgo CFLAGS: -Wall -Wno-unused-variable -std=c99
55
//#cgo LDFLAGS: -lpam
66
//
77
//#include <security/pam_appl.h>

0 commit comments

Comments
 (0)