Ticket #524: mg-unhandled-attr

File mg-unhandled-attr, 522 bytes (added by pini, 11 years ago)
Line 
1Workaround for unhandled attrs in MG
2Index: navit/navit/map/mg/town.c
3===================================================================
4--- navit.orig/navit/map/mg/town.c      2010-01-11 12:28:41.000000000 +0100
5+++ navit/navit/map/mg/town.c   2010-01-11 15:31:54.000000000 +0100
6@@ -105,7 +105,8 @@
7                twn->attr_next=attr_none;
8                return 1;
9        default:
10-               dbg_assert(1==0);
11+                dbg(1, "Don't know about attribute %d[%04X]=%s yet\n",
12+                       attr_type, attr_type, attr_to_name(attr_type));
13                return 0;
14        }
15        return 1;