Bug 5908 - incompatible pointer type warning
Summary: incompatible pointer type warning
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-06-28 12:27 UTC by Andres G. Aragoneses
Modified: 2012-06-28 19:35 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Andres G. Aragoneses 2012-06-28 12:27:44 UTC
Just built Mono today and I got this warning:

reflection.c: In function ‘mono_reflection_get_dynamic_overrides’:
reflection.c:10929:6: warning: passing argument 1 of ‘mono_reflection_method_get_handle’ from incompatible pointer type [enabled by default]
reflection.c:10851:1: note: expected ‘struct MonoObject *’ but argument is of type ‘struct MonoReflectionMethod *’
Comment 1 Andres G. Aragoneses 2012-06-28 12:35:13 UTC
More warnings:

sgen-os-posix.c: In function ‘restart_handler’:
sgen-os-posix.c:168:8: warning: assignment from incompatible pointer type [enabled by default]


sgen-major-copying.c: In function ‘alloc_major_section’:
sgen-major-copying.c:137:2: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘int64_t’ [-Wformat]
CC      libmonoruntimesgen_la-sgen-los.lo
sgen-los.c: In function ‘mono_sgen_los_describe_pointer’:
sgen-los.c:527:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘mword’ [-Wformat]
sgen-los.c:531:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘mword’ [-Wformat]


In file included from gslist.c:354:0:
sort.frag.h: In function ‘do_sort’:
sort.frag.h:136:14: warning: array subscript is below array bounds [-Warray-bounds]

In file included from glist.c:329:0:
sort.frag.h: In function ‘do_sort’:
sort.frag.h:136:14: warning: array subscript is below array bounds [-Warray-bounds]
Comment 2 Zoltan Varga 2012-06-28 19:35:25 UTC
Fixed most of these.