From 306fddc54afd45c2f5cd7ef7a6a5dd7a58a3a21b Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 1 Feb 2009 21:02:36 +0000 Subject: [PATCH] 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 --- headers/os/app/PropertyInfo.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/headers/os/app/PropertyInfo.h b/headers/os/app/PropertyInfo.h index b870931f3d..969c4fdc95 100644 --- a/headers/os/app/PropertyInfo.h +++ b/headers/os/app/PropertyInfo.h @@ -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];