mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Avoid warnings while generating the parser
This commit is contained in:
parent
ae6ddf01fa
commit
2270b204e5
@ -141,6 +141,7 @@ LT_INIT([dlopen])
|
||||
# Identify platform
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
CUSTOM_YFLAGS=""
|
||||
case $host in
|
||||
*-*-aix*)
|
||||
echo "Checking platform... Identified as AIX"
|
||||
@ -161,6 +162,7 @@ case $host in
|
||||
echo "Checking platform... Identified as Linux"
|
||||
AC_DEFINE([LINUX], [1], [Define if the operating system is LINUX])
|
||||
PLATFORM="Linux"
|
||||
CUSTOM_YFLAGS="-d -Wno-yacc"
|
||||
;;
|
||||
*-*-solaris*)
|
||||
echo "Checking platform... Identified as Solaris"
|
||||
@ -207,6 +209,8 @@ esac
|
||||
MSC_BASE_DIR=`pwd`
|
||||
AC_SUBST([MSC_BASE_DIR])
|
||||
|
||||
AC_SUBST([CUSTOM_YFLAGS])
|
||||
|
||||
MSC_VERSION_INFO=msc_version_info
|
||||
AC_SUBST([MSC_VERSION_INFO])
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
|
||||
noinst_LTLIBRARIES = libmodsec_parser.la
|
||||
|
||||
AM_YFLAGS = $(CUSTOM_YFLAGS)
|
||||
|
||||
BUILT_SOURCES = \
|
||||
seclang-parser.cc \
|
||||
test.cc
|
||||
|
@ -1,7 +1,7 @@
|
||||
%skeleton "lalr1.cc" /* -*- C++ -*- */
|
||||
%require "3.0.2"
|
||||
%defines
|
||||
%define parser_class_name {seclang_parser}
|
||||
%define api.parser.class {seclang_parser}
|
||||
%define api.token.constructor
|
||||
%define api.value.type variant
|
||||
//%define api.namespace {modsecurity::yy}
|
||||
|
Loading…
x
Reference in New Issue
Block a user