Results 1 to 3 of 3

Thread: A patch to fix some compiler warnings in qwt

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: A patch to fix some compiler warnings in qwt

    Quote Originally Posted by alex_sh View Post
    warnings about C casts ...
    Well warnings about that casts are casting - even if the compiler offers to enable such warnings they doesn't make much sense to me. And enabling additional warning levels for compiling 3rd party libraries doesn't seem to be something that a user needs to do.

    Anyway, the reason for these warnings is because Qwt still uses C casts instead of C++ casts. This decsision was made because of compiler limitations 10 years ago. This should be pointless nowadays and Qt itself uses C++ casts.

    I will replace all C casts.

    There's also one about QwtPlotZoomer::move()
    This one is indeed worth a warning as the compiler can't identify the right move method from the parameter type, when one of them has been overloaded. I will change this.
    uncertain choice of overload in QDebug operator<<( QDebug debug, const QwtScaleMap &map )
    When you mean the missing enum to int cast - I will add it.

    Uwe

  2. The following user says thank you to Uwe for this useful post:

    alex_sh (18th November 2010)

Similar Threads

  1. Replies: 2
    Last Post: 22nd April 2012, 07:12
  2. Strange compiler behaviour (compiler passes wrong argument)
    By SasaVilic in forum General Programming
    Replies: 2
    Last Post: 2nd November 2010, 11:36
  3. Where are my compiler warnings?
    By drhex in forum General Programming
    Replies: 5
    Last Post: 18th February 2009, 21:28
  4. Crosscompiling warnings
    By SteM in forum Installation and Deployment
    Replies: 1
    Last Post: 2nd August 2007, 20:26

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.