The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6355

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 8b1ee1253138e7d331e48bcb45e31cd91d5992e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Sun, 27 Oct 2019 15:55:01 +0100
Subject: [PATCH] global: Drop -Wcast-align (breaks armhf)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 lxd-p2c/cgo.go           | 2 +-
 lxd/cgo.go               | 2 +-
 lxd/seccomp/cgo.go       | 2 +-
 lxd/storage/cgo.go       | 2 +-
 lxd/storage/quota/cgo.go | 2 +-
 lxd/ucred/cgo.go         | 2 +-
 shared/cgo.go            | 2 +-
 shared/idmap/cgo.go      | 2 +-
 shared/netutils/cgo.go   | 2 +-
 shared/termios/cgo.go    | 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/lxd-p2c/cgo.go b/lxd-p2c/cgo.go
index 7a001deac6..545ca40ace 100644
--- a/lxd-p2c/cgo.go
+++ b/lxd-p2c/cgo.go
@@ -4,7 +4,7 @@ package main
 
 // #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
 // #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
-// #cgo CFLAGS: -pipe -Wcast-align --param=ssp-buffer-size=4 -g -Wunused
+// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
 // #cgo CFLAGS: -Werror=implicit-function-declaration
 // #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
 // #cgo CFLAGS: -Wnested-externs -fexceptions
diff --git a/lxd/cgo.go b/lxd/cgo.go
index b8f79c7a51..c8c175a93e 100644
--- a/lxd/cgo.go
+++ b/lxd/cgo.go
@@ -4,7 +4,7 @@ package main
 
 // #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
 // #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
-// #cgo CFLAGS: -pipe -Wcast-align --param=ssp-buffer-size=4 -g -Wunused
+// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
 // #cgo CFLAGS: -Werror=implicit-function-declaration
 // #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
 // #cgo CFLAGS: -Wnested-externs -fexceptions
diff --git a/lxd/seccomp/cgo.go b/lxd/seccomp/cgo.go
index 61e60ae17c..96af14bf8a 100644
--- a/lxd/seccomp/cgo.go
+++ b/lxd/seccomp/cgo.go
@@ -4,7 +4,7 @@ package seccomp
 
 // #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
 // #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
-// #cgo CFLAGS: -pipe -Wcast-align --param=ssp-buffer-size=4 -g -Wunused
+// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
 // #cgo CFLAGS: -Werror=implicit-function-declaration
 // #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
 // #cgo CFLAGS: -Wnested-externs -fexceptions
diff --git a/lxd/storage/cgo.go b/lxd/storage/cgo.go
index e3d1a41efe..9fea3c1cc3 100644
--- a/lxd/storage/cgo.go
+++ b/lxd/storage/cgo.go
@@ -4,7 +4,7 @@ package storage
 
 // #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
 // #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
-// #cgo CFLAGS: -pipe -Wcast-align --param=ssp-buffer-size=4 -g -Wunused
+// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
 // #cgo CFLAGS: -Werror=implicit-function-declaration
 // #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
 // #cgo CFLAGS: -Wnested-externs -fexceptions
diff --git a/lxd/storage/quota/cgo.go b/lxd/storage/quota/cgo.go
index e8320a76b7..03d304a618 100644
--- a/lxd/storage/quota/cgo.go
+++ b/lxd/storage/quota/cgo.go
@@ -4,7 +4,7 @@ package quota
 
 // #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
 // #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
-// #cgo CFLAGS: -pipe -Wcast-align --param=ssp-buffer-size=4 -g -Wunused
+// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
 // #cgo CFLAGS: -Werror=implicit-function-declaration
 // #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
 // #cgo CFLAGS: -Wnested-externs -fexceptions
diff --git a/lxd/ucred/cgo.go b/lxd/ucred/cgo.go
index 6692b68aa0..66b851975b 100644
--- a/lxd/ucred/cgo.go
+++ b/lxd/ucred/cgo.go
@@ -4,7 +4,7 @@ package ucred
 
 // #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
 // #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
-// #cgo CFLAGS: -pipe -Wcast-align --param=ssp-buffer-size=4 -g -Wunused
+// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
 // #cgo CFLAGS: -Werror=implicit-function-declaration
 // #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
 // #cgo CFLAGS: -Wnested-externs -fexceptions
diff --git a/shared/cgo.go b/shared/cgo.go
index cc79857c41..898f41e94f 100644
--- a/shared/cgo.go
+++ b/shared/cgo.go
@@ -4,7 +4,7 @@ package shared
 
 // #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
 // #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
-// #cgo CFLAGS: -pipe -Wcast-align --param=ssp-buffer-size=4 -g -Wunused
+// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
 // #cgo CFLAGS: -Werror=implicit-function-declaration
 // #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
 // #cgo CFLAGS: -Wnested-externs -fexceptions
diff --git a/shared/idmap/cgo.go b/shared/idmap/cgo.go
index 4ca7a8320f..d2580a4fd7 100644
--- a/shared/idmap/cgo.go
+++ b/shared/idmap/cgo.go
@@ -4,7 +4,7 @@ package idmap
 
 // #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
 // #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
-// #cgo CFLAGS: -pipe -Wcast-align --param=ssp-buffer-size=4 -g -Wunused
+// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
 // #cgo CFLAGS: -Werror=implicit-function-declaration
 // #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
 // #cgo CFLAGS: -Wnested-externs -fexceptions
diff --git a/shared/netutils/cgo.go b/shared/netutils/cgo.go
index 60bc19f70b..2b9ac993f4 100644
--- a/shared/netutils/cgo.go
+++ b/shared/netutils/cgo.go
@@ -4,7 +4,7 @@ package netutils
 
 // #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
 // #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
-// #cgo CFLAGS: -pipe -Wcast-align --param=ssp-buffer-size=4 -g -Wunused
+// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
 // #cgo CFLAGS: -Werror=implicit-function-declaration
 // #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
 // #cgo CFLAGS: -Wnested-externs -fexceptions
diff --git a/shared/termios/cgo.go b/shared/termios/cgo.go
index f7517e32b2..727ec73267 100644
--- a/shared/termios/cgo.go
+++ b/shared/termios/cgo.go
@@ -4,7 +4,7 @@ package termios
 
 // #cgo CFLAGS: -std=gnu11 -Wvla -Werror -fvisibility=hidden -Winit-self
 // #cgo CFLAGS: -Wformat=2 -Wshadow -Wendif-labels -fasynchronous-unwind-tables
-// #cgo CFLAGS: -pipe -Wcast-align --param=ssp-buffer-size=4 -g -Wunused
+// #cgo CFLAGS: -pipe --param=ssp-buffer-size=4 -g -Wunused
 // #cgo CFLAGS: -Werror=implicit-function-declaration
 // #cgo CFLAGS: -Werror=return-type -Wendif-labels -Werror=overflow
 // #cgo CFLAGS: -Wnested-externs -fexceptions
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to