Results 1 to 2 of 2

Thread: Please help me-->How can i remove " no new line at the end of the file " warning !!

  1. #1
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Please help me-->How can i remove " no new line at the end of the file " warning !!

    Hello! friends,
    I designed a simple GUI to get comfortable with Qt4, but when i compiled it to get .exe i got this warning for every file like for sample.h, sample.cpp n all. As shown below are the warnings: -

    sample.h:16:7: warning: no new line at the end of file
    sample.cpp:9:2: warning: no new line at the end of file


    Here is my sample.h file
    Qt Code:
    1. #ifndef SAMPLE_H
    2. #define SAMPLE_H
    3.  
    4. #include "ui_sample.h"
    5.  
    6.  
    7. class mySample : public QWidget, private Ui::Form
    8. {
    9. Q_OBJECT
    10.  
    11. public:
    12. mySample(QWidget *parent = 0);
    13.  
    14. };
    15.  
    16. #endif
    To copy to clipboard, switch view to plain text mode 
    Can anyone please help me in removing them?

    I will be obliged if helped. Thanks in advance.
    Last edited by Krish; 10th March 2008 at 17:45.

  2. #2
    Join Date
    Nov 2007
    Posts
    89
    Thanked 21 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Please help me-->How can i remove " no new line at the end of the file " warning

    You should add a new blank line at the end of every file.

Similar Threads

  1. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  2. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  3. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  4. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.