Skip to content

[mono] Fix warnings on OSX netcore - #39997

Merged
CoffeeFlux merged 1 commit into
dotnet:masterfrom
CoffeeFlux:more-warning-fixes
Jul 28, 2020
Merged

[mono] Fix warnings on OSX netcore#39997
CoffeeFlux merged 1 commit into
dotnet:masterfrom
CoffeeFlux:more-warning-fixes

Conversation

@CoffeeFlux

Copy link
Copy Markdown
Contributor

This commit brings us back to zero warnings for the default build configuration.

@ghost

Copy link
Copy Markdown

Tagging subscribers to this area: @CoffeeFlux
See info in area-owners.md if you want to be subscribed.

@akoeplinger

Copy link
Copy Markdown
Member

/azp run runtime

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@akoeplinger

Copy link
Copy Markdown
Member

@CoffeeFlux looks like this causes a build failure on the Windows build:

 F:\workspace\_work\1\s\src\mono\mono\metadata\mono-config.c(695,93): error C4047: '=': 'char' differs in levels of indirection from 'gchar *' [F:\workspace\_work\1\s\src\mono\msvc\libmono-dynamic.vcxproj]
F:\workspace\_work\1\s\src\mono\mono\metadata\mono-config.c(696,61): error C4047: 'function': 'const char *' differs in levels of indirection from 'char' [F:\workspace\_work\1\s\src\mono\msvc\libmono-dynamic.vcxproj]
F:\workspace\_work\1\s\src\mono\mono\metadata\mono-config.c(696,61): warning C4024: 'mono_config_parse_file_with_context': different types for formal and actual parameter 2 [F:\workspace\_work\1\s\src\mono\msvc\libmono-dynamic.vcxproj]
F:\workspace\_work\1\s\src\mono\mono\metadata\mono-config.c(697,14): error C4022: 'monoeg_g_free': pointer mismatch for actual parameter 1 [F:\workspace\_work\1\s\src\mono\msvc\libmono-dynamic.vcxproj]
F:\workspace\_work\1\s\src\mono\mono\metadata\mono-config.c(701,91): error C4047: '=': 'char' differs in levels of indirection from 'gchar *' [F:\workspace\_work\1\s\src\mono\msvc\libmono-dynamic.vcxproj]
F:\workspace\_work\1\s\src\mono\mono\metadata\mono-config.c(702,61): error C4047: 'function': 'const char *' differs in levels of indirection from 'char' [F:\workspace\_work\1\s\src\mono\msvc\libmono-dynamic.vcxproj]
F:\workspace\_work\1\s\src\mono\mono\metadata\mono-config.c(702,61): warning C4024: 'mono_config_parse_file_with_context': different types for formal and actual parameter 2 [F:\workspace\_work\1\s\src\mono\msvc\libmono-dynamic.vcxproj]
F:\workspace\_work\1\s\src\mono\mono\metadata\mono-config.c(703,14): error C4022: 'monoeg_g_free': pointer mismatch for actual parameter 1 [F:\workspace\_work\1\s\src\mono\msvc\libmono-dynamic.vcxproj]

Comment threadsrc/mono/mono/metadata/mono-config.c Outdated
@akoeplinger

Copy link
Copy Markdown
Member

Which also means we haven't kept these defines in sync with winconfig.h otherwise this code wouldn't have been compiled :D

This commit brings us back to zero warnings for the default build configuration
@CoffeeFlux

Copy link
Copy Markdown
ContributorAuthor

Yep, and that one's on me. Addressed here: #40005

@CoffeeFlux
CoffeeFlux merged commit ad93942 into dotnet:masterJul 28, 2020
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
This commit brings us back to zero warnings for the default build configuration
@karelzkarelz added this to the 5.0.0 milestone Aug 18, 2020
@ghostghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@CoffeeFlux@akoeplinger@vargaz@karelz@Dotnet-GitSync-Bot