From: Pablo Neira Ayuso <pablo@netfilter.org>
To: NICOLAS BOULIANE <nicboul@gmail.com>
Cc: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: Re: [RFC] masquerading/conntrack
Date: Wed, 21 May 2008 17:10:46 +0200 [thread overview]
Message-ID: <48343B76.4090404@netfilter.org> (raw)
In-Reply-To: <dd45289d0805210725r4409b860if06bc8adb68059be@mail.gmail.com>
NICOLAS BOULIANE wrote:
> Pablo,
>
> It fixed the strdup(). But now:
>
> cc1: warnings being treated as errors
> read_config_lex.c: In function 'yylex':
> read_config_lex.c:3846: warning: label 'find_rule' defined but not used
> make[1]: *** [read_config_lex.o] Error 1
>
>
> if I strip this label (find_rule), then I get:
>
> read_config_lex.c:3593: warning: 'yy_full_match' defined but not used
> make[1]: *** [read_config_lex.o] Error 1
> make[1]: Leaving directory `/usr/local/src/conntrack-tools/src'
> make: *** [all-recursive] Error 1
>
>
> If I remove this function (yy_full_match), then I get:
>
> cc1: warnings being treated as errors
> read_config_lex.c: In function 'yylex':
> read_config_lex.c:3782: warning: 'yy_act' may be used uninitialized in
> this function
> make[1]: *** [read_config_lex.o] Error 1
>
> If I initialize this var (register int yy_act = 0;), then I get:
>
> everything compile now.
This report is really strange, your flex implementation is generating
useless code. What version are you using? Here I'm using flex 2.5.33.
> I'm using a version I compiled without the -Werror flag, it was more clean.
The -Werror is there to catch this sort of problems and force users to
report them ;), I plan to keep it there until conntrack-tools hits 1.0
at least.
Probably we have to check for a specific version of flex.
--
"Los honestos son inadaptados sociales" -- Les Luthiers
next prev parent reply other threads:[~2008-05-21 15:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-21 8:33 [RFC] masquerading/conntrack NICOLAS BOULIANE
2008-05-21 8:48 ` Henrik Nordstrom
2008-05-21 9:53 ` Pablo Neira Ayuso
2008-05-21 13:23 ` NICOLAS BOULIANE
2008-05-21 14:04 ` Pablo Neira Ayuso
2008-05-21 14:25 ` NICOLAS BOULIANE
2008-05-21 15:10 ` Pablo Neira Ayuso [this message]
2008-05-21 16:13 ` NICOLAS BOULIANE
2008-05-22 13:00 ` Pablo Neira Ayuso
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=48343B76.4090404@netfilter.org \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=nicboul@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.