On gcc4 these need to be declared const. Otherwise any and every app that simply sets up a bunch of property_info structs for its scripting directives triggers many many warnings with respect to deprecated string constant conversions.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29114 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2009-02-01 21:02:36 +00:00
parent c33667d400
commit 306fddc54a
+7 -1
View File
@@ -48,10 +48,16 @@ struct compound_type {
};
struct property_info {
#if __GNUC__ > 2
const
#endif
char *name;
uint32 commands[10];
uint32 specifiers[10];
char *usage;
#if __GNUC__ > 2
const
#endif
char *usage;
uint32 extra_data;
uint32 types[10];
compound_type ctypes[3];