Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VoBW3-0003nX-Mb for mharc-grub-devel@gnu.org; Wed, 04 Dec 2013 07:25:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoBVx-0003d0-0g for grub-devel@gnu.org; Wed, 04 Dec 2013 07:25:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoBVq-0002ui-7A for grub-devel@gnu.org; Wed, 04 Dec 2013 07:25:12 -0500 Received: from [193.47.165.129] (port=51178 helo=mellanox.co.il) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoBVp-0002rf-Oc for grub-devel@gnu.org; Wed, 04 Dec 2013 07:25:06 -0500 Received: from Internal Mail-Server by MTLPINE2 (envelope-from doront@mellanox.com) with SMTP; 4 Dec 2013 13:58:16 +0200 Received: from r-vnc04.mtr.labs.mlnx (r-vnc04.mtr.labs.mlnx [10.208.0.116]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id rB4BwCmb002937; Wed, 4 Dec 2013 13:58:16 +0200 From: Doron Tsur To: grub-devel@gnu.org Subject: [PATCH 3/3] "-Wall -Wextra -Werror" compilation patches - part 3/3 grub/grub-core/lib/libgcrypt-grub Date: Wed, 4 Dec 2013 13:58:08 +0200 Message-Id: <1386158288-32144-3-git-send-email-doront@mellanox.com> X-Mailer: git-send-email 1.7.8.2 In-Reply-To: <1386158288-32144-1-git-send-email-doront@mellanox.com> References: <1386158288-32144-1-git-send-email-doront@mellanox.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 193.47.165.129 Cc: Doron Tsur , itaib@mellanox.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 12:25:18 -0000 Tests: Ubuntu 13.10 compilation .../configure --prefix=/usr --enable-mm-debug --enable-cache-stats EFI_ARCH=x86_64 --with-platform=efi --enable-boot-time CFLAGS="-Wall -Wextra -Werror" && make --- conf/Makefile.common | 2 +- util/import_gcry.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/Makefile.common b/conf/Makefile.common index 8a71f13..9b898d2 100644 --- a/conf/Makefile.common +++ b/conf/Makefile.common @@ -79,7 +79,7 @@ CPPFLAGS_GNULIB = -I$(top_builddir)/grub-core/gnulib -I$(top_srcdir)/grub-core/g CFLAGS_POSIX = -fno-builtin CPPFLAGS_POSIX = -I$(top_srcdir)/grub-core/lib/posix_wrap -CFLAGS_GCRY = -Wno-error -Wno-missing-field-initializers -Wno-redundant-decls -Wno-undef $(CFLAGS_POSIX) +CFLAGS_GCRY = -Wno-error -Wno-missing-field-initializers -Wno-redundant-decls -Wno-undef $(CFLAGS_POSIX) -Wno-empty-body CPPFLAGS_GCRY = -I$(top_srcdir)/grub-core/lib/libgcrypt_wrap $(CPPFLAGS_POSIX) -D_GCRYPT_IN_LIBGCRYPT=1 -I$(top_srcdir)/include/grub/gcrypt CPPFLAGS_EFIEMU = -I$(top_srcdir)/grub-core/efiemu/runtime diff --git a/util/import_gcry.py b/util/import_gcry.py index 1319a8c..9e00b8b 100644 --- a/util/import_gcry.py +++ b/util/import_gcry.py @@ -473,7 +473,7 @@ for cipher_file in cipher_files: conf.write (" cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare';\n") elif modname == "gcry_rijndael" or modname == "gcry_md4" or modname == "gcry_md5" or modname == "gcry_rmd160" or modname == "gcry_sha1" or modname == "gcry_sha256" or modname == "gcry_sha512" or modname == "gcry_tiger": # Alignment checked by hand - conf.write (" cflags = '$(CFLAGS_GCRY) -Wno-cast-align';\n"); + conf.write (" cflags = '$(CFLAGS_GCRY) -Wno-cast-align -fno-strict-aliasing';\n"); else: conf.write (" cflags = '$(CFLAGS_GCRY)';\n"); conf.write (" cppflags = '$(CPPFLAGS_GCRY)';\n"); -- 1.7.8.2