Suppress trigraph warnings in resource file preprocessing. fix
authorJon Chatten
Wed, 24 Mar 2010 15:18:06 +0000
branchfix
changeset 393 629079c72ee4
parent 390 421e376bfce4
child 394 b6f8d38305f2
Suppress trigraph warnings in resource file preprocessing.
sbsv2/raptor/lib/flm/resource.flm
sbsv2/raptor/test/smoke_suite/resource.py
sbsv2/raptor/test/smoke_suite/test_resources/simple_gui/HelloWorld.rss
--- a/sbsv2/raptor/lib/flm/resource.flm	Tue Mar 23 13:34:00 2010 +0000
+++ b/sbsv2/raptor/lib/flm/resource.flm	Wed Mar 24 15:18:06 2010 +0000
@@ -112,7 +112,7 @@
 $(call makepath,$(INTERBASE))
 
 # common pre-processor options
-CPPOPT:=-nostdinc -undef -D_UNICODE -include $(PRODUCT_INCLUDE)\
+CPPOPT:=-nostdinc -undef -Wno-trigraphs -D_UNICODE -include $(PRODUCT_INCLUDE)\
  -I$(dir $(SOURCE)) $(foreach I, $(USERINCLUDE),-I$(I) ) -I- $(foreach J,$(SYSTEMINCLUDE),-I$(J) )
 
 CREATABLEPATHS:=$(RSCDIR) $(RSGDIR) $(OUTPUTPATH)
--- a/sbsv2/raptor/test/smoke_suite/resource.py	Tue Mar 23 13:34:00 2010 +0000
+++ b/sbsv2/raptor/test/smoke_suite/resource.py	Wed Mar 24 15:18:06 2010 +0000
@@ -63,5 +63,7 @@
 		"helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp",
 		"helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp.d"])
 
+	t.mustnotmatch = ["HelloWorld.rss.* warning: trigraph"]
+	
 	t.run()
 	return t
--- a/sbsv2/raptor/test/smoke_suite/test_resources/simple_gui/HelloWorld.rss	Tue Mar 23 13:34:00 2010 +0000
+++ b/sbsv2/raptor/test/smoke_suite/test_resources/simple_gui/HelloWorld.rss	Wed Mar 24 15:18:06 2010 +0000
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -66,6 +66,7 @@
 RESOURCE TBUF r_example_text_Item0 { buf="Item 0"; }
 RESOURCE TBUF r_example_text_Item1 { buf="Item 1"; }
 RESOURCE TBUF r_example_text_Item2 { buf="Item 2"; }
+RESOURCE TBUF r_example_text_Item3 { buf="This string generates a trigraph warning if not suppressed: <h>ID3?????????<m>"; }
 
 RESOURCE LOCALISABLE_APP_INFO r_lai
 	{