[Build] Suppress build warnings (#2062)
authorWonYoung Choi <wy80.choi@samsung.com>
Tue, 29 Sep 2020 07:21:01 +0000 (16:21 +0900)
committerGitHub <noreply@github.com>
Tue, 29 Sep 2020 07:21:01 +0000 (16:21 +0900)
12 files changed:
internals/src/Tizen.Peripheral/Tizen.Peripheral/Gpio.cs
src/ElmSharp/ElmSharp.csproj
src/Tizen.Account.OAuth2/Tizen.Account.OAuth2.csproj
src/Tizen.NUI.Components/Tizen.NUI.Components.csproj
src/Tizen.NUI.Wearable/Tizen.NUI.Wearable.csproj
src/Tizen.NUI/Tizen.NUI.csproj
src/Tizen.NUI/src/public/BaseComponents/Style/Selector.cs
src/Tizen.NUI/src/public/Position2D.cs
src/Tizen.NUI/src/public/Size2D.cs
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAvrcpControl.cs
src/Tizen.Security.DevicePolicyManager/Tizen.Security.DevicePolicyManager.csproj
src/Tizen.Sensor/Tizen.Sensor/Sensor.cs

index 03c3dfa..7243d48 100644 (file)
@@ -142,9 +142,8 @@ namespace Tizen.Peripheral.Gpio
                             throw ExceptionFactory.CreateException(ret);
                         break;
                 }
-            } catch(Exception e) {
+            } finally {
                 Dispose();
-                throw;
             }
         }
 
index 56fcd5c..bc4577a 100644 (file)
@@ -2,6 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
+    <NoWarn>$(NoWarn);CS1591</NoWarn>
   </PropertyGroup>
 
   <ItemGroup>
index 7a686e9..8ccaf8e 100644 (file)
@@ -2,6 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
+    <NoWarn>$(NoWarn);CS0612;CS0618</NoWarn>
   </PropertyGroup>
 
   <PropertyGroup>
index 616af37..5df6042 100755 (executable)
@@ -2,6 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
+    <NoWarn>$(NoWarn);CS0618</NoWarn>
   </PropertyGroup>
 
   <ItemGroup>
index 02efe79..61dc58c 100755 (executable)
@@ -3,6 +3,7 @@
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
     <RootNamespace>Tizen.NUI</RootNamespace>
+    <NoWarn>$(NoWarn);CS0618</NoWarn>
   </PropertyGroup>
 
   <PropertyGroup>
index c64bd04..bcffc90 100644 (file)
@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <NoWarn>$(NoWarn);CS0618;CS0809</NoWarn>
+    <NoWarn>$(NoWarn);CS0618;CS0809;CS1591</NoWarn>
   </PropertyGroup>
 
   <ItemGroup>
index 8b155fe..118aa74 100755 (executable)
@@ -240,7 +240,7 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Removes all elements from <see cref="StateValueList"./>
+        /// Removes all elements from <see cref="StateValueList"/>.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
         public void Clear()
@@ -368,7 +368,7 @@ namespace Tizen.NUI.BaseComponents
 
             if (otherSelector == null)
             {
-                return;   
+                return;
             }
 
             selector = otherSelector.Clone();
index 48f2595..8b028cc 100755 (executable)
@@ -17,7 +17,6 @@
 using System;
 using System.ComponentModel;
 using Tizen.NUI.Binding;
-using System.ComponentModel;
 
 namespace Tizen.NUI
 {
index 2026762..2f844f4 100755 (executable)
@@ -16,7 +16,6 @@
  */
 using System.ComponentModel;
 using Tizen.NUI.Binding;
-using System.ComponentModel;
 
 namespace Tizen.NUI
 {
index 71b46fb..8e262ff 100644 (file)
@@ -547,17 +547,22 @@ namespace Tizen.Network.Bluetooth
             }
         }
 
+        /// <summary>
+        /// Finalizes an instance of the BluetoothAvrcpControl class.
+        /// </summary>
         ~BluetoothAvrcpControl()
         {
             Dispose(false);
         }
 
+        /// <inheritdoc/>
         public void Dispose()
         {
             Dispose(true);
             GC.SuppressFinalize(this);
         }
 
+        /// <inheritdoc/>
         private void Dispose(bool disposing)
         {
             if (disposed)
index 025032a..96ae4d1 100644 (file)
@@ -2,6 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
+    <NoWarn>$(NoWarn);CS1591</NoWarn>
   </PropertyGroup>
 
   <PropertyGroup>
index 863e8a8..1812c7c 100755 (executable)
@@ -382,7 +382,7 @@ namespace Tizen.Sensor
                 }
                 catch (InvalidOperationException e)
                 {
-                    Log.Error(Globals.LogTag, "Sensor has no data.");
+                    Log.Error(Globals.LogTag, "Sensor has no data : " + e.Message);
                 }
                 EventListenStart();
                 _isSensing = true;