Skip to content

Commit

Permalink
Reduces significantly the number of warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmerle committed Mar 23, 2016
1 parent 37465cc commit f22d410
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions modsecurity/modsecurity.i
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@

%module modsecurity

%include "std_string.i"
%include "std_vector.i"
%include "std_sstream.i"
%include <std_string.i>
%include <std_sstream.i>
%include <std_vector.i>
%include <std_map.i>
%include <std_multimap.i>
%include "attribute.i"
%include "carrays.i"
%include "typemaps.i"
Expand All @@ -42,6 +44,18 @@
using std::basic_string;
%}

%rename(_del) modsecurity::transaction::Variables::del(const std::string& key);
%rename(_del) modsecurity::transaction::Collections::del(const std::string& key);

%immutable modsecurity::ModSecurityIntervention_t::url;
%immutable modsecurity::ModSecurityIntervention_t::log;

%immutable modsecurity::Transaction::m_clientIpAddress;
%immutable modsecurity::Transaction::m_httpVersion;
%immutable modsecurity::Transaction::m_method;
%immutable modsecurity::Transaction::m_serverIpAddress;
%immutable modsecurity::Transaction::m_uri;

%ignore modsecurity::RulesProperties::parserError const;
%ignore modsecurity::Transaction::m_requestBody;
%ignore modsecurity::Transaction::m_responseBody;
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def find_header(modsec_dir):
library_dirs=[lib_dir],
runtime_library_dirs=[lib_dir],
include_dirs=[inc_dir, "."],
extra_compile_args=["-std=c++11"]
extra_compile_args=["-std=c++11", "-Wno-maybe-uninitialized"]
)


Expand Down

0 comments on commit f22d410

Please sign in to comment.