compiler deprecation warnings with g++ 7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
On Ubuntu 17.10 I noticed the following in build logs:
In file included from hfa.cc:36:0:
hfa.h:47:16: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
perms_t(void) throw(int): allow(0), deny(0), audit(0), quiet(0), exact(0) { };
hfa.h:195:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
State(int l, ProtoState &n, State *other) throw(int):
In file included from chfa.cc:32:0:
hfa.h:47:16: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
perms_t(void) throw(int): allow(0), deny(0), audit(0), quiet(0), exact(0) { };
hfa.h:195:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
State(int l, ProtoState &n, State *other) throw(int):
In file included from aare_rules.cc:33:0:
hfa.h:47:16: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
perms_t(void) throw(int): allow(0), deny(0), audit(0), quiet(0), exact(0) { };
hfa.h:195:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
State(int l, ProtoState &n, State *other) throw(int):
$ g++ --version
g++ (Ubuntu 7.2.0-1ubuntu1) 7.2.0
Compile-tested on 16.04 LTS's gcc; not tested and not even compile-tested on gcc 7.
We don't appear to set unexpected anywhere, so I think this'll do the trick.
Thanks