Skip to content

Conversation

@mandel-macaque
Copy link
Contributor

The flag adds a lot (A LOT) of warnings. The diff would be huge and
dangerous to review. We enable the flag and fix file by file.

…he warnings.

The flag adds a lot (A LOT) of warnings. The diff would be huge and
dangerous to review. We enable the flag and fix file by file.
@mandel-macaque mandel-macaque changed the title [Runtime] Enable the -Wsign-conversion watning flag and fix some of the warnings. [Runtime] Enable the -Wsign-conversion warnings flag and fix some of the warnings. Nov 11, 2019
@monojenkins
Copy link
Collaborator

Build failure
Build failed or was aborted

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

6 tests failed, 82 tests passed.

Failed tests

  • link all/Mac Modern/Debug: Failed (Test run failed.)
  • link all/Mac Modern/Release: Failed (Test run failed.)
  • link sdk/Mac Modern/Debug: Failed (Test run failed.)
  • link sdk/Mac Modern/Release: Failed (Test run failed.)
  • monotouch-test/tvOS - simulator/Debug: Failed
  • monotouch-test/watchOS 32-bits - simulator/Debug: Crashed


#ifndef GPOINTER_TO_INT
#define GPOINTER_TO_INT(p) ((int) (long) (p))
#define GPOINTER_TO_INT(p) ((uint32_t) (long) (p))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes the macro name incorrect, so:

Suggested change
#define GPOINTER_TO_INT(p) ((uint32_t) (long) (p))
#define GPOINTER_TO_UINT(p) ((uint32_t) (long) (p))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense, but the above #ifndef needs to be updated too
i.e. don't commit suggestion alone :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't it would not compile. It is a larger change (is used in several places) but can be done in this PR.

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

20 tests failed, 68 tests passed.

Failed tests

  • link all/Mac Modern/Debug: Failed (Test run failed.)
  • link all/Mac Modern/Release: Failed (Test run failed.)
  • link sdk/Mac Modern/Debug: Failed (Test run failed.)
  • link sdk/Mac Modern/Release: Failed (Test run failed.)
  • monotouch-test/watchOS 32-bits - simulator/Debug: Crashed
  • framework-test/watchOS 32-bits - simulator/Debug: Crashed
  • interdependent-binding-projects/watchOS 32-bits - simulator/Debug: Crashed
  • fsharp/watchOS 32-bits - simulator/Debug: Crashed
  • introspection/watchOS 32-bits - simulator/Debug: Crashed
  • dont link/watchOS 32-bits - simulator/Debug: Crashed
  • dont link/watchOS 32-bits - simulator/Release: Crashed
  • link all/watchOS 32-bits - simulator/Debug: Crashed
  • link all/watchOS 32-bits - simulator/Release: Crashed
  • link sdk/watchOS 32-bits - simulator/Debug: Crashed
  • link sdk/watchOS 32-bits - simulator/Release: Crashed
  • mono-native-compat/watchOS 32-bits - simulator/Debug: Crashed
  • mono-native-unified/watchOS 32-bits - simulator/Debug: Crashed
  • monotouch-test/watchOS 32-bits - simulator/Debug (LinkSdk): Crashed
  • monotouch-test/watchOS 32-bits - simulator/Debug (static registrar): Crashed
  • monotouch-test/watchOS 32-bits - simulator/Release (all optimizations): Crashed

@mandel-macaque
Copy link
Contributor Author

HE0038 (https://github.com/xamarin/maccore/issues/581) and issues with the msdn page that are fixed by #7401

@mandel-macaque mandel-macaque merged commit 63ab48e into dotnet:master Nov 12, 2019
@mandel-macaque mandel-macaque deleted the partial-enable-Wsign-conversion branch November 12, 2019 20:10
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 13, 2019
Enable the flag that was disabled via pragmas.

Continuation of PR: dotnet#7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 13, 2019
Enable the flag that was disabled via pragmas.

Continuation of PR: dotnet#7405
mandel-macaque added a commit that referenced this pull request Nov 14, 2019
Enable the flag that was disabled via pragmas.

Continuation of PR: #7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 14, 2019
Enable the flag that was disabled via pragmas.

Continuation of PR: dotnet#7405
mandel-macaque added a commit that referenced this pull request Nov 14, 2019
…7428)

Enable the flag that was disabled via pragmas.

Continuation of PR: #7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 14, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: dotnet#7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 14, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: dotnet#7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 14, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: dotnet#7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 14, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: dotnet#7405
mandel-macaque added a commit that referenced this pull request Nov 15, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: #7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 15, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: dotnet#7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 15, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: dotnet#7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 15, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: dotnet#7405
mandel-macaque added a commit that referenced this pull request Nov 15, 2019
…#7455)

Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: #7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 15, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: dotnet#7405
mandel-macaque added a commit that referenced this pull request Nov 18, 2019
)

Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: #7405
mandel-macaque added a commit that referenced this pull request Nov 20, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: #7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 20, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: dotnet#7405
mandel-macaque added a commit that referenced this pull request Nov 21, 2019
Enable the flag that was disabled via pragmas and fix warnings.

Continuation of PR: #7405
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Nov 21, 2019
Update flags:

* Add -Werror so that warnings are errors.
* Move to -Wconversion that adds:
  * -Wbitfield-enum-conversion
  * -Wbool-conversion
  * -Wconstant-conversion
  * -Wenum-conversion
  * -Wfloat-conversion
  * -Wimplicit-float-conversion
  * -Wimplicit-int-conversion
  * -Wint-conversion
  * -Wliteral-conversion
  * -Wnon-literal-null-conversion
  * -Wnull-conversion
  * -Wobjc-literal-conversion
  * -Wshorten-64-to-32
  * -Wsign-conversion
  * -Wstring-conversion
Last work related to: dotnet#7405
mandel-macaque added a commit that referenced this pull request Nov 25, 2019
Update flags:

* Add -Werror so that warnings are errors.
* Move to -Wconversion that adds:
  * -Wbitfield-enum-conversion
  * -Wbool-conversion
  * -Wconstant-conversion
  * -Wenum-conversion
  * -Wfloat-conversion
  * -Wimplicit-float-conversion
  * -Wimplicit-int-conversion
  * -Wint-conversion
  * -Wliteral-conversion
  * -Wnon-literal-null-conversion
  * -Wnull-conversion
  * -Wobjc-literal-conversion
  * -Wshorten-64-to-32
  * -Wsign-conversion
  * -Wstring-conversion
Last work related to: #7405
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants