You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

coverity_model.cc 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // This file is never compiled or linked into GPSBabel itself; it exists
  2. // solely so we can VC the model of things we have to tell Coverity about
  3. // to shush bogus positives.
  4. void fatal(const char *msg, ...) {
  5. __coverity_panic__();
  6. }
  7. // Forward decls to make the signature match.
  8. class Waypoint;
  9. class route_head;
  10. class QString;
  11. class route;
  12. // These functions "claim" their arguments
  13. void
  14. waypt_add(Waypoint* wpt) {
  15. __coverity_escape__(wpt);
  16. }
  17. void track_add_head(route_head* rte) {
  18. __coverity_escape__(rte);
  19. }
  20. void route_add_head(route_head* rte) {
  21. __coverity_escape__(rte);
  22. }
  23. void route_add_wpt(route_head* rte, Waypoint* wpt) {
  24. __coverity_escape__(wpt);
  25. }
  26. void track_add_wpt(route_head* rte, Waypoint* wpt) {
  27. __coverity_escape__(wpt);
  28. }
  29. void route_add_wpt_named(route_head* rte, Waypoint* wpt,
  30. const QString& namepart, int number_digits) {
  31. __coverity_escape__(wpt);
  32. }
  33. void track_add_wpt_named(route_head* rte, Waypoint* wpt,
  34. const QString& namepart, int number_digits) {
  35. __coverity_escape__(wpt);
  36. }