From 79364f5b2eed99755d79b5842a1a6f8f06f12bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 19 Jan 2024 15:35:44 +0100 Subject: [PATCH] transaction: Ignore unused variable warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transaction.go b/transaction.go index 8b327041..bd2876d8 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 "transaction.h"