DPDK patches and discussions
 help / color / mirror / Atom feed
From: ASM <asm@asm.pp.ru>
To: dev@dpdk.org
Subject: [dpdk-dev]  Build with -Werror=declaration-after-statement
Date: Fri, 2 Sep 2016 13:49:16 +0300	[thread overview]
Message-ID: <CAMmAVbUao=3+nsAye2wU6u_uyd0LSrxMV9wbqy4kQyWD3OwZfQ@mail.gmail.com> (raw)

Hi folks!

Many groups have flag  -Werror=declaration-after-statement in the
their coding conventions. Dpdk have many code as static inline
function in the headers files and have trouble with it.

For example:
* lib/librte_ether/rte_ether.h, function rte_vlan_strip
* lib/librte_eal/common/include/rte_dev.h, function rte_pmd_debug_trace
* lib/librte_eal/common/include/arch/x86/rte_spinlock.h, fucntion rte_try_tm

Any project who use  -Werror=declaration-after-statement can't to
compile own projects without
patching this headers.

How do you look at to fix this problem?

---
Best regards,
Leonid Myravjev

             reply	other threads:[~2016-09-02 10:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-02 10:49 ASM [this message]
2016-09-02 13:13 ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMmAVbUao=3+nsAye2wU6u_uyd0LSrxMV9wbqy4kQyWD3OwZfQ@mail.gmail.com' \
    --to=asm@asm.pp.ru \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).