Author Topic: Fixed some warnings from compiler  (Read 5173 times)

php-coder

  • Guest
Fixed some warnings from compiler
« on: January 04, 2006, 12:01:40 pm »
I made small patch which fixes some warinigs from gcc (3.4.4):

fileunix.c: In function `file_dirscan':
fileunix.c:164: warning: suggest parentheses around assignment used as truth value
fileunix.c: In function `file_archscan':
fileunix.c:225: warning: implicit declaration of function `read'
fileunix.c:228: warning: implicit declaration of function `close'
fileunix.c:280: warning: implicit declaration of function `lseek'

and

manager.cpp: In member function `void wxFrameManager::LayoutAddDock(wxSizer*, wxDockInfo&, wxDockUIPartArray&, bool)':
manager.cpp:1590: warning: unused variable 'space_left'
manager.cpp: In member function `wxSizer* wxFrameManager::LayoutAll(wxPaneInfoArray&, wxDockInfoArray&, wxDockUIPartArray&, bool)':
manager.cpp:1952: warning: unused variable 'top'
manager.cpp:1954: warning: unused variable 'bottom'

This patch available here: ftp://ftp.altlinux.ru/pub/people/php-coder/patches/codeblocks-1.0svn1652-alt-warnings-fix.patch

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Fixed some warnings from compiler
« Reply #1 on: January 04, 2006, 12:08:42 pm »
It is probably better to put your patch at the project page at sourceforge, and you can announce it here :
http://forums.codeblocks.org/index.php?topic=1764.0

Cheers,
Lieven

php-coder

  • Guest
Re: Fixed some warnings from compiler
« Reply #2 on: January 04, 2006, 12:26:39 pm »
It is probably better to put your patch at the project page at sourceforge

Yeah... i try post my patch in bugtracker: http://sourceforge.net/tracker/index.php?func=detail&aid=1396732&group_id=126998&atid=707418

But it my first experience work with this bugtracker. Now i think this bugtracker is sux :( Never will use his... sorry... may be it's very difficult for me.

And about announce: my patch tiny and not make big changes.

Thnx for your advice!