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:
@@ -48,10 +48,16 @@ struct compound_type {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct property_info {
|
struct property_info {
|
||||||
|
#if __GNUC__ > 2
|
||||||
|
const
|
||||||
|
#endif
|
||||||
char *name;
|
char *name;
|
||||||
uint32 commands[10];
|
uint32 commands[10];
|
||||||
uint32 specifiers[10];
|
uint32 specifiers[10];
|
||||||
char *usage;
|
#if __GNUC__ > 2
|
||||||
|
const
|
||||||
|
#endif
|
||||||
|
char *usage;
|
||||||
uint32 extra_data;
|
uint32 extra_data;
|
||||||
uint32 types[10];
|
uint32 types[10];
|
||||||
compound_type ctypes[3];
|
compound_type ctypes[3];
|
||||||
|
|||||||
Reference in New Issue
Block a user