Menu

#5 List of pointer casts to be fixed.

closed-fixed
nobody
None
3
2015-06-10
2007-02-08
No

Pointer casts are evil.

When compiling for i386 (32-bit) systems, the cast from pointer to integer works reliably, but when compiling for x86_64 we get 70 warnings of this form:

gtkfont.c:195: warning: cast from pointer to integer of different size

Either the paramter holding the pointer needs to be made architechure independent or the use of casts/pointers eleminated.

I have not seen any indication of brokeness caused by these warnings, so they can be considered low priority.

Discussion

  • Perry Gilfillan

    Perry Gilfillan - 2007-02-08

    results of compile showing pointer cast warnings.

     
  • Perry Gilfillan

    Perry Gilfillan - 2007-02-08
    • priority: 5 --> 3
     
  • Perry Gilfillan

    Perry Gilfillan - 2007-02-25

    Change (void*) type cast to pass for loop index by refrence

     
  • Perry Gilfillan

    Perry Gilfillan - 2007-02-25

    Logged In: YES
    user_id=793485
    Originator: YES

    The output of make previously posted has each warning listed twice... there are just 35 to be concerned about.

    The simpler ones involve passing a for loop index by refrence, so I include a patch that should resolve those five.
    File Added: xtrkcad.for-loop-index-by-refrence.patch

     
  • Daniel E. Markle

    • status: open --> closed-fixed
     
  • Daniel E. Markle

    These should all be resolved as of 4.2.0

     

Anonymous
Anonymous

Add attachments
Cancel