From 5a1a40a5498a58ffed95a2a086d450acbc35afe8 Mon Sep 17 00:00:00 2001
From: Blacktempel <6657796+Blacktempel@users.noreply.github.com>
Date: Mon, 24 Nov 2025 16:39:42 +0100
Subject: [PATCH] Fix warnings. (#2072)
---
LibreHardwareMonitor/UI/PlotPanel.cs | 4 ++++
.../Hardware/Motherboard/Lpc/IsaBridgeGigabyteController.cs | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/LibreHardwareMonitor/UI/PlotPanel.cs b/LibreHardwareMonitor/UI/PlotPanel.cs
index cd3957d..861d731 100644
--- a/LibreHardwareMonitor/UI/PlotPanel.cs
+++ b/LibreHardwareMonitor/UI/PlotPanel.cs
@@ -263,9 +263,13 @@ public class PlotPanel : UserControl
StrokeThickness = 2,
};
+#pragma warning disable CS0618 //obsolete warning
+
axis.AxisChanged += (sender, args) => annotation.Y = axis.ActualMinimum;
axis.TransformChanged += (sender, args) => annotation.Y = axis.ActualMinimum;
+#pragma warning restore CS0618 //obsolete warning
+
axis.Zoom(_settings.GetValue("plotPanel.Min" + axis.Key, float.NaN), _settings.GetValue("plotPanel.Max" + axis.Key, float.NaN));
if (units.ContainsKey(type))
diff --git a/LibreHardwareMonitorLib/Hardware/Motherboard/Lpc/IsaBridgeGigabyteController.cs b/LibreHardwareMonitorLib/Hardware/Motherboard/Lpc/IsaBridgeGigabyteController.cs
index b70c5dc..cc9398d 100644
--- a/LibreHardwareMonitorLib/Hardware/Motherboard/Lpc/IsaBridgeGigabyteController.cs
+++ b/LibreHardwareMonitorLib/Hardware/Motherboard/Lpc/IsaBridgeGigabyteController.cs
@@ -87,8 +87,8 @@ internal class IsaBridgeGigabyteController : IGigabyteController
{
bool isEntered = false;
- /// use a try finaly + the to get a safe
- /// and pattern
+ // use try finally + isEntered to get a safe
+ // EnterMmio and ExitMmio pattern
try
{
// get initial state if missing