From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by dpdk.org (Postfix) with ESMTP id 682F514EC for ; Mon, 16 Jan 2017 16:33:55 +0100 (CET) Received: by mail-lf0-f46.google.com with SMTP id n124so17467656lfd.2 for ; Mon, 16 Jan 2017 07:33:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=kzBGb+aD0hkHB3MkJyHRGktvlmftzD9vDeLwY7D+k0M=; b=iRkNKus0EA3S0yNUUqB1ruwEHPg5dYHFu1e5xSMwCWvl6JV8ZFbdu/9fBSyBcquKeq 1Duxl/a1tBAJRFUdtFAq8w3cFsJgTJ9+vZhkT2TlMozAQNGcY7OVtIPW9myuD5phbNUV PULQL3CAjvIvE2GEhq2YhxA7v3ITzA9J/dNlgXiGUbIN0lpJE3tpiQNuHzkVvUugVOOw wgwpybP+hchb8mEmdCPSyPtOdHbqhxSxdpJ52fynngq1PE4hdLUcXSMs7CuA5MxirnCw Jn9X1GPPpr8wjbjSRHlASyravZQ6kpUFJw/dSY+PW/nCqeDIf8BJN0DIEhev56p9fH9w 9j2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=kzBGb+aD0hkHB3MkJyHRGktvlmftzD9vDeLwY7D+k0M=; b=t3k/S8+eX/ZddZMElL7dmfLgwYBUHvrpICVZ3JoZM+3mdkMU3Dyfr3momYre2frelt jj0R2P5rG2O7m+LQbq+E7Qjv/nGsOBpiQMBQAIyackxbPr3l47N9UntrwlcXqaPRGZe/ UsTooWSC5I0qRNQdRnDZS/EeBoctir7r06AsagaO50jdf3F7M7p2DuSyrHx8tYDS4YQ3 8g2Mj2Ml87sZnH140uLlv3APHYGcyC207R9vydINdFcd3+szvM4Uo+w9FhW3cYG4qwMZ /m5uBvyB8Xp1L3vk26mi8pN3imrr4ERmnEd7kNSlBLl+3oF7ibxdjkKimDl1CeSZ+bx4 WvFA== X-Gm-Message-State: AIkVDXIi4KeJeXMnvU7rgns7DQ0+RfhHkv2szKBtZlfXwIeCD61r8frQx5RfM322FDmLVz5X X-Received: by 10.46.77.149 with SMTP id c21mr13767521ljd.69.1484580834839; Mon, 16 Jan 2017 07:33:54 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id c66sm7474058ljd.44.2017.01.16.07.33.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jan 2017 07:33:54 -0800 (PST) From: Thomas Monjalon To: Emmanuel Roullit Cc: dev@dpdk.org Date: Mon, 16 Jan 2017 16:33:53 +0100 Message-ID: <1625382.2NysoX1o8M@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1484509675-15075-1-git-send-email-emmanuel.roullit@gmail.com> References: <1484509675-15075-1-git-send-email-emmanuel.roullit@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] mk: suppress reference of packed members X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2017 15:33:55 -0000 Hi, 2017-01-15 20:47, Emmanuel Roullit: > error: taking address of packed member 'mlock' of class or structure > 'rte_mem_config' may result in an unaligned pointer value > [-Werror,-Waddress-of-packed-member] Is it a compilation error? Which compiler version? > --- a/mk/toolchain/clang/rte.vars.mk > +++ b/mk/toolchain/clang/rte.vars.mk > @@ -67,7 +67,7 @@ WERROR_FLAGS := -W -Wall -Wstrict-prototypes -Wmissing-prototypes > WERROR_FLAGS += -Wmissing-declarations -Wold-style-definition -Wpointer-arith > WERROR_FLAGS += -Wnested-externs -Wcast-qual > WERROR_FLAGS += -Wformat-nonliteral -Wformat-security > -WERROR_FLAGS += -Wundef -Wwrite-strings > +WERROR_FLAGS += -Wundef -Wwrite-strings -Wno-address-of-packed-member Why removing the warning? Is there something to fix in the code?