#296: Adress recent GCC warnings regarding unused local typedefs
-----------------------+------------------------
Reporter: levill_r | Owner: Olena Team
Type: defect | Status: new
Priority: major | Milestone: Olena 2.1
Component: Milena | Version: 2.0
Resolution: | Keywords:
-----------------------+------------------------
Description changed by levill_r:
Old description:
GCC's `-Wunused-local-typedefs` option (which
seems to be hooked to
`-Wall` since version 4.8) triggers a lot of messages regarding Milena's
code (and probably Scribo's as well).
Some cases are easy to solve (typedefs actually used nowhere), while
others are more delicate to handle, as `typedef` is used as a concept
checking mechanism within Milena's concept classes. See how other
projects doing concept checking with typedefs handled this issue. I
guess we may be able to leverage GCC attributes to solve this.
New description:
GCC's `-Wunused-local-typedefs` option (which seems to be hooked to
`-Wall` since version 4.8) triggers a lot of messages regarding Milena's
code (and probably Scribo's as well).
Some cases are easy to solve (typedefs actually used nowhere), while
others are more delicate to handle, as `typedef` is used as a concept
checking mechanism within Milena's concept classes. See how other projects
doing concept checking with typedefs handled this issue. I guess we may
be able to leverage GCC attributes to solve this. Or maybe use macros, as
suggested by Akim.
--
--
Ticket URL: <https://trac.lrde.epita.fr/olena/ticket/296#comment:1>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient image processing platform