summaryrefslogtreecommitdiff
path: root/navit/bookmarks.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-05 20:40:15 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-05 20:40:15 +0000
commitd97128c9164d3724190da3044642d30045055fc7 (patch)
tree477f475b7bc5851000023b7244274ddf0a3a932b /navit/bookmarks.c
parent7f202ea8c325a94fbef1392ad8268e6ab69162f2 (diff)
downloadnavit-d97128c9164d3724190da3044642d30045055fc7.tar.gz
Fix:core:Suppress bogus warning if bookmark.txt or destination.txt do not (yet) exist.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5183 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/bookmarks.c')
-rw-r--r--navit/bookmarks.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/navit/bookmarks.c b/navit/bookmarks.c
index e70fb6dab..09ebf08fd 100644
--- a/navit/bookmarks.c
+++ b/navit/bookmarks.c
@@ -257,8 +257,10 @@ bookmarks_new(struct attr *parent, struct attr **attrs, struct transformation *t
{
//Load map now
- struct attr type={attr_type, {"textfile"}}, data={attr_data, {this_->bookmark_file}};
- struct attr *attrs[]={&type, &data, NULL};
+ struct attr type={attr_type, {"textfile"}},
+ data={attr_data, {this_->bookmark_file}},
+ no_warn={attr_no_warning_if_map_file_missing, {1}};
+ struct attr *attrs[]={&type, &data, &no_warn, NULL};
this_->bookmark=map_new(this_->parent, attrs);
if (!this_->bookmark)
return NULL;