mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
reduce warnings TrivialFTP.cs, AD7PendingBreakpoint.cs, EngineCallback.cs, FatFile.cs, Heap.cs, INTs.cs, VGAScreen.cs
This commit is contained in:
parent
1e11282257
commit
41584c0fe8
7 changed files with 7 additions and 10 deletions
|
|
@ -39,7 +39,6 @@ namespace Cosmos.Deploy.Pixie {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
protected bool Connect() {
|
protected bool Connect() {
|
||||||
OpType xOp;
|
|
||||||
var xReader = Receive(OpType.Read);
|
var xReader = Receive(OpType.Read);
|
||||||
mDataEP = new IPEndPoint(mRecvEP.Address, mRecvEP.Port);
|
mDataEP = new IPEndPoint(mRecvEP.Address, mRecvEP.Port);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@ namespace Cosmos.Debug.VSDebugEngine {
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(InvalidOperationException ex)
|
catch(InvalidOperationException)
|
||||||
{
|
{
|
||||||
//No elements in potXMethods sequence!
|
//No elements in potXMethods sequence!
|
||||||
return VSConstants.S_FALSE;
|
return VSConstants.S_FALSE;
|
||||||
|
|
|
||||||
|
|
@ -63,11 +63,11 @@ namespace Cosmos.Debug.VSDebugEngine {
|
||||||
// Call this one for internal Cosmos dev.
|
// Call this one for internal Cosmos dev.
|
||||||
// Can be turned off and should be turned off by default. Use an IFDEF or something.
|
// Can be turned off and should be turned off by default. Use an IFDEF or something.
|
||||||
public void OnOutputString(string outputString) {
|
public void OnOutputString(string outputString) {
|
||||||
if (false) {
|
#if DEV
|
||||||
//System.Diagnostics.Debug.Assert(Worker.CurrentThreadId == m_engine.DebuggedProcess.PollThreadId);
|
//System.Diagnostics.Debug.Assert(Worker.CurrentThreadId == m_engine.DebuggedProcess.PollThreadId);
|
||||||
var eventObject = new AD7OutputDebugStringEvent(outputString);
|
var eventObject = new AD7OutputDebugStringEvent(outputString);
|
||||||
Send(eventObject, AD7OutputDebugStringEvent.IID, null);
|
Send(eventObject, AD7OutputDebugStringEvent.IID, null);
|
||||||
}
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is the user version, messages directly from Cosmos user code
|
// This is the user version, messages directly from Cosmos user code
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using System.Text;
|
||||||
|
|
||||||
namespace Cosmos.System.Filesystem.FAT.Listing {
|
namespace Cosmos.System.Filesystem.FAT.Listing {
|
||||||
public class FatFile : Cosmos.System.Filesystem.Listing.File {
|
public class FatFile : Cosmos.System.Filesystem.Listing.File {
|
||||||
public readonly FatFileSystem FileSystem;
|
public new readonly FatFileSystem FileSystem;
|
||||||
public readonly UInt64 FirstClusterNum;
|
public readonly UInt64 FirstClusterNum;
|
||||||
|
|
||||||
// Size is UInt32 because FAT doesn't support bigger.
|
// Size is UInt32 because FAT doesn't support bigger.
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,7 @@ namespace Cosmos.Core
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool mDebugDisplayInitialized = false;
|
//private static bool mDebugDisplayInitialized = false;
|
||||||
|
|
||||||
// this method displays the used/total memory of the heap on the first line of the text screen
|
// this method displays the used/total memory of the heap on the first line of the text screen
|
||||||
private static void UpdateDebugDisplay()
|
private static void UpdateDebugDisplay()
|
||||||
|
|
|
||||||
|
|
@ -477,7 +477,6 @@ namespace Cosmos.Core
|
||||||
// At this point we are in a very unstable state.
|
// At this point we are in a very unstable state.
|
||||||
// Try not to use any Cosmos routines, just
|
// Try not to use any Cosmos routines, just
|
||||||
// report a crash dump.
|
// report a crash dump.
|
||||||
const string SysFault = " *** System Fault *** ";
|
|
||||||
const string xHex = "0123456789ABCDEF";
|
const string xHex = "0123456789ABCDEF";
|
||||||
uint xPtr = ctx.EIP;
|
uint xPtr = ctx.EIP;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,6 @@ namespace Cosmos.Hardware
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Exception("Unknown screen size");
|
throw new Exception("Unknown screen size");
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//public void SetPixel320x200x4(uint x, uint y, uint c);
|
//public void SetPixel320x200x4(uint x, uint y, uint c);
|
||||||
|
|
@ -332,11 +331,11 @@ namespace Cosmos.Hardware
|
||||||
|
|
||||||
if ((x & 1) == 0)
|
if ((x & 1) == 0)
|
||||||
{
|
{
|
||||||
xSegment[xOffset] = (byte)((xSegment[xOffset] & 0xf) | (c << 4));
|
xSegment[xOffset] = (byte)((xSegment[xOffset] & 0xf) | (byte)(c << 4));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
xSegment[xOffset] = (byte)((xSegment[xOffset] & 0xf0) | c);
|
xSegment[xOffset] = (byte)((xSegment[xOffset] & 0xf0) | (byte)c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public uint GetPixel640x480x4(uint x, uint y)
|
public uint GetPixel640x480x4(uint x, uint y)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue