Skip to content

Commit

Permalink
lex: Work around lex bugs on Fedora 19.
Browse files Browse the repository at this point in the history
This disables sign mismatch warnings in the compiler so we can
compile 'clean' on Fedora 19 with lex bug:

https://bugzilla.redhat.com/show_bug.cgi?id=993447

Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Aug 30, 2013
1 parent 5eaebe3 commit 11b895d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xorp/policy/SConscript
Expand Up @@ -29,6 +29,11 @@ env = env.Clone()

is_shared = env.has_key('SHAREDLIBS')

# Fedora 19 has broken-ish lex...work around it for now.
env.AppendUnique(CCFLAGS = [
'-Wno-sign-compare',
])

env.AppendUnique(CPPPATH = [
'#',
'$BUILDDIR',
Expand Down
5 changes: 5 additions & 0 deletions xorp/policy/backend/SConscript
Expand Up @@ -24,6 +24,11 @@ env = env.Clone()

is_shared = env.has_key('SHAREDLIBS')

# Fedora 19 has broken-ish lex...work around it for now.
env.AppendUnique(CCFLAGS = [
'-Wno-sign-compare',
])

env.AppendUnique(CPPPATH = [ '#' ])

# Automatically generate flex and yacc files
Expand Down
5 changes: 5 additions & 0 deletions xorp/rtrmgr/SConscript
Expand Up @@ -28,6 +28,11 @@ SConscript(dirs = subdirs, exports='env')

env = env.Clone()

# Fedora 19 has broken-ish lex...work around it for now.
env.AppendUnique(CCFLAGS = [
'-Wno-sign-compare',
])

env.AppendUnique(CPPPATH = [
'.',
'$BUILDDIR',
Expand Down

0 comments on commit 11b895d

Please sign in to comment.