osrm-backend/include/engine
Daniel J. Hofmann 7f71f0ed12 Warn on unused return values in guidance code, resolves #2686.
https://github.com/Project-OSRM/osrm-backend/pull/2685/files

fixes an issue where we did

    elongate(fstStep, sndStep);

instead of

    newStep = elongate(fstStep, sndStep);

we didn't get any warnings.

The only way to trigger a warning here is to use

```cpp
__attribute__((warn_unused_result))
```

This changeset does exactly that: for the new guidance code prone to
these kind of issue we add such an attribute to the declaration.
2016-08-03 12:26:07 +02:00
..
api Clang format. 2016-07-30 23:53:38 +02:00
datafacade Apply clang-format again 2016-07-26 15:00:58 +02:00
guidance Warn on unused return values in guidance code, resolves #2686. 2016-08-03 12:26:07 +02:00
map_matching Format with clang-format 3.8 2016-05-27 21:05:04 +02:00
plugins Format with clang-format 3.8 2016-05-27 21:05:04 +02:00
routing_algorithms Include datasources for each segment in route annotation. 2016-07-27 15:51:11 -07:00
trip Format with clang-format 3.8 2016-05-27 21:05:04 +02:00
base64.hpp Format with clang-format 3.8 2016-05-27 21:05:04 +02:00
bearing.hpp Adds the license preamble for all publicly installed eaders, closes #2036 2016-04-05 22:58:32 +02:00
douglas_peucker.hpp Format with clang-format 3.8 2016-05-27 21:05:04 +02:00
engine_config.hpp Initial libosrm API docs 2016-04-05 22:59:14 +02:00
engine.hpp Format with clang-format 3.8 2016-05-27 21:05:04 +02:00
geospatial_query.hpp Clang format. 2016-07-30 23:53:38 +02:00
hint.hpp Format with clang-format 3.8 2016-05-27 21:05:04 +02:00
internal_route_result.hpp Include datasources for each segment in route annotation. 2016-07-27 15:51:11 -07:00
phantom_node.hpp Format with clang-format 3.8 2016-05-27 21:05:04 +02:00
polyline_compressor.hpp advanced guidance on 5.0 2016-04-05 22:58:32 +02:00
search_engine_data.hpp Format with clang-format 3.8 2016-05-27 21:05:04 +02:00
status.hpp Initial libosrm API docs 2016-04-05 22:59:14 +02:00