compiler deprecation warnings with g++ 7

Bug #1713089 reported by Jamie Strandboge
8
This bug affects 1 person
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

Revision history for this message
Seth Arnold (seth-arnold) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.