diff options
author | Marco Trevisan (Treviño) <[email protected]> | 2024-01-19 15:35:44 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <[email protected]> | 2024-01-19 16:23:06 +0100 |
commit | d11b37f2fea7d0c6b69268bfeeb190eca54ad730 (patch) | |
tree | 3e08d12d51ec7f7b3396b09419e66ed44f861e61 | |
parent | 0ba49d9719c3c1d2b2e8654277450658e888dc42 (diff) |
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.
-rw-r--r-- | transaction.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transaction.go b/transaction.go index 9fee575..dc2d378 100644 --- a/transaction.go +++ b/transaction.go @@ -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 <security/pam_appl.h> |