Skip to content

[runtime] Allocate memory correctly to make clang's static analyzer happy. - #1724

Merged
rolfbjarne merged 1 commit into
dotnet:masterfrom
rolfbjarne:runtime-allocate-correctly
Feb 20, 2017
Merged

[runtime] Allocate memory correctly to make clang's static analyzer happy.#1724
rolfbjarne merged 1 commit into
dotnet:masterfrom
rolfbjarne:runtime-allocate-correctly

Conversation

@rolfbjarne

@rolfbjarne rolfbjarne commented Feb 20, 2017

Copy link
Copy Markdown
Member
trampolines.m:75:22: warning: Result of 'malloc' is converted to a pointer of type 'id', which is incompatible with sizeof operand type 'void *'
                                id *buf = (id *) malloc (sizeof (void *) * length);
                                ~~~~             ^~~~~~  ~~~~~~~~~~~~~~~

…appy.

    trampolines.m:75:22: warning: Result of 'malloc' is converted to a pointer of type 'id', which is incompatible with sizeof operand type 'void *'
                                    id *buf = (id *) malloc (sizeof (void *) * length);
                                    ~~~~             ^~~~~~  ~~~~~~~~~~~~~~~
@monojenkins

Copy link
Copy Markdown
Contributor

Build success

@rolfbjarne
rolfbjarne merged commit a4d2998 into dotnet:master Feb 20, 2017
VincentDondain added a commit to VincentDondain/xamarin-macios that referenced this pull request Aug 13, 2019
Hopefully fixes xamarin/maccore#1912

New commits in xamarin/macios-binaries:

* xamarin/macios-binaries@37a7bf9 Bump mlaunch to xamarin/maccore@46d5f822fe (dotnet#23)

Diff: https://github.com/xamarin/macios-binaries/compare/c4773043c5aa941bddaedf6c0fe5ae56db84342a..37a7bf9ac7208aed810257ccc06d09e4aaa94471

New commits in xamarin/maccore:

* xamarin/maccore@46d5f822fe [sample tests] Switch to devdiv AzDO instance instead of the xamarin one. (dotnet#1851)
* xamarin/maccore@b3b8e8bfee [Xamarin.Hosting] Remove an unavailable SimDevice.RegisterNotificationHandler overload. (dotnet#1724)
* xamarin/maccore@63bf859723 [mlaunch] Connect to devices on a background thread. (dotnet#1778)

Diff: https://github.com/xamarin/maccore/compare/f26319899f55394e61ef17ee0e399e38fc65ea63..46d5f822fec0dec2513d64a9390033bdead3fe45
VincentDondain added a commit that referenced this pull request Aug 13, 2019
Hopefully fixes xamarin/maccore#1912

New commits in xamarin/macios-binaries:

* xamarin/macios-binaries@37a7bf9 Bump mlaunch to xamarin/maccore@46d5f822fe (#23)

Diff: https://github.com/xamarin/macios-binaries/compare/c4773043c5aa941bddaedf6c0fe5ae56db84342a..37a7bf9ac7208aed810257ccc06d09e4aaa94471

New commits in xamarin/maccore:

* xamarin/maccore@46d5f822fe [sample tests] Switch to devdiv AzDO instance instead of the xamarin one. (#1851)
* xamarin/maccore@b3b8e8bfee [Xamarin.Hosting] Remove an unavailable SimDevice.RegisterNotificationHandler overload. (#1724)
* xamarin/maccore@63bf859723 [mlaunch] Connect to devices on a background thread. (#1778)

Diff: https://github.com/xamarin/maccore/compare/f26319899f55394e61ef17ee0e399e38fc65ea63..46d5f822fec0dec2513d64a9390033bdead3fe45
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.

4 participants