Skip to content

Commit

Permalink
Fix a compiler NotImplementedException (dotnet#2331)
Browse files Browse the repository at this point in the history
* Fix a compiler warning

* Prevent NotImplementedException in some test cases

* No need for two builds on a push to a PR
  • Loading branch information
pgrawehr authored Jul 18, 2024
1 parent 306bd2e commit 84c7f37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/arduino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ name: Arduino_Compiler_CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events
push:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ protected internal override void Write(int pinNumber, PinValue value)
public override ComponentInformation QueryComponentInformation()
{
var ret = new ComponentInformation(this, "Libgpiod Wrapper driver");
#pragma warning disable SDGPIO0001
ret.Properties.Add("Version", Version.ToString());
ret.AddSubComponent(GetDriver().QueryComponentInformation());
#pragma warning restore SDGPIO0001
return ret;
}

Expand Down
2 changes: 1 addition & 1 deletion tools/ArduinoCsCompiler/Runtime/MiniInterop.Kernel32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ internal static unsafe int CompareStringOrdinal(
internal static unsafe int LCMapStringEx(string lpLocaleName, uint dwMapFlags, char* lpSrcStr, int cchsrc, void* lpDestStr,
int cchDest, void* lpVersionInformation, void* lpReserved, IntPtr sortHandle)
{
throw new NotImplementedException();
return 0; // Can apparently be null in InvariantCulture mode.
}

internal static int FindNLSString(
Expand Down

0 comments on commit 84c7f37

Please sign in to comment.