projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db743bc
)
Add ifdef to suppress non-coreclr warning
author
stephentoub
<stoub@microsoft.com>
Mon, 11 Jan 2016 23:25:17 +0000
(18:25 -0500)
committer
stephentoub
<stoub@microsoft.com>
Mon, 11 Jan 2016 23:25:17 +0000
(18:25 -0500)
My change to optimize AppDomain.Setup included moving a variable out of a loop, which also ended up moving it out of an ifdef. That then causes an unused variable warning on some builds.
src/mscorlib/src/System/AppDomain.cs
patch
|
blob
|
history
diff --git
a/src/mscorlib/src/System/AppDomain.cs
b/src/mscorlib/src/System/AppDomain.cs
index
12428be
..
ae5e841
100644
(file)
--- a/
src/mscorlib/src/System/AppDomain.cs
+++ b/
src/mscorlib/src/System/AppDomain.cs
@@
-3623,7
+3623,9
@@
namespace System {
if(propertyNames!=null && propertyValues != null)
{
+#if FEATURE_CORECLR
StringBuilder normalisedAppPathList = null;
+#endif // FEATURE_CORECLR
for (int i=0; i<propertyNames.Length; i++)
{
if(propertyNames[i]=="APPBASE") // make sure in sync with Fusion