[lxc-devel] [go-lxc/v2] Silence go get warning

caglar10ur on Github lxc-bot at linuxcontainers.org
Tue Apr 19 03:27:52 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 777 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160419/56a09439/attachment.bin>
-------------- next part --------------
From 9dc762da43020297c67cbc87cc13cf56dc44c04b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= <caglar at 10ur.org>
Date: Mon, 18 Apr 2016 20:23:37 -0700
Subject: [PATCH] Silence go get warning
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

$> go get gopkg.in/lxc/go-lxc.v2
/opt/go/src/gopkg.in/lxc/go-lxc.v2/lxc-binding.c:366:70: warning: ‘struct migrate_opts’ declared inside parameter list
 int go_lxc_migrate(struct lxc_container *c, unsigned int cmd, struct migrate_opts *opts) {
                                                                      ^
/opt/go/src/gopkg.in/lxc/go-lxc.v2/lxc-binding.c:366:70: warning: its scope is only this definition or declaration, which is probably not what you want
---
 lxc-binding.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lxc-binding.c b/lxc-binding.c
index 1515b91..a3dd0a4 100644
--- a/lxc-binding.c
+++ b/lxc-binding.c
@@ -13,6 +13,8 @@
 #include <lxc/attach_options.h>
 #include <lxc/version.h>
 
+#include "lxc-binding.h"
+
 #define VERSION_AT_LEAST(major, minor, micro)							\
 	(!(major > LXC_VERSION_MAJOR ||								\
 	major == LXC_VERSION_MAJOR && minor > LXC_VERSION_MINOR ||				\


More information about the lxc-devel mailing list