widl: Write-strings warning fix

Andrew Talbot Andrew.Talbot at talbotville.com
Thu Aug 24 14:50:10 CDT 2006


I am ignorant of yacc and was unable to constify successfully. So this is
my best shot at this one.

-- Andy.
---
Changelog:
    widl: Write-strings warning fix.

diff -urN a/tools/widl/parser.y b/tools/widl/parser.y
--- a/tools/widl/parser.y	2006-08-16 17:23:47.000000000 +0100
+++ b/tools/widl/parser.y	2006-08-24 20:42:02.000000000 +0100
@@ -843,9 +843,10 @@
 	| tUNION t_ident
 	  tSWITCH '(' s_field ')'
 	  m_ident '{' cases '}'			{ var_t *u = $7;
+						  static char tagged_union[] = "tagged_union";
 						  $$ = get_typev(RPC_FC_ENCAPSULATED_UNION, $2, tsUNION);
 						  $$->kind = TKIND_UNION;
-						  if (!u) u = make_var("tagged_union");
+						  if (!u) u = make_var(tagged_union);
 						  u->type = make_type(RPC_FC_NON_ENCAPSULATED_UNION, NULL);
 						  u->type->kind = TKIND_UNION;
 						  u->type->fields = $9;



More information about the wine-patches mailing list