diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-07-05 20:40:15 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-07-05 20:40:15 +0000 |
commit | 5bd4713a89477e0b9bed32db66f65282fd3d25a3 (patch) | |
tree | 477f475b7bc5851000023b7244274ddf0a3a932b /navit/bookmarks.c | |
parent | f63324207a5556be01cd660d9d5987338cd11379 (diff) | |
download | navit-svn-5bd4713a89477e0b9bed32db66f65282fd3d25a3.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.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/navit/bookmarks.c b/navit/bookmarks.c index e70fb6da..09ebf08f 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; |