Unix Technical Forum

bogus unixware compiler warnings

This is a discussion on bogus unixware compiler warnings within the Pgsql Patches forums, part of the PostgreSQL category; --> I'm slowly working on submitting patches to reduce the amount of (bogus) compiler warnings generated by various buildfarm members. ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 11:23 AM
Stefan Kaltenbrunner
 
Posts: n/a
Default bogus unixware compiler warnings

I'm slowly working on submitting patches to reduce the amount of (bogus)
compiler warnings generated by various buildfarm members.

Warthog(the unixware box) generates some 1140 lines of:

UX:cc: WARNING: debugging and optimization mutually exclusive; -O disabled
UX:cc: WARNING: debugging and optimization mutually exclusive; -O disabled

which seems to be a result of having both -g and -O in CFLAGS - Olivier
was so kind to test the attached patch which get's rid of all those
bogus warnings (and seems to be in line with what we are doing on other
platforms like solaris).


Stefan

Index: src/template/unixware
================================================== =================
RCS file: /projects/cvsroot/pgsql/src/template/unixware,v
retrieving revision 1.41
diff -c -r1.41 unixware
*** src/template/unixware 14 Dec 2006 21:49:54 -0000 1.41
--- src/template/unixware 15 Jul 2007 16:54:43 -0000
***************
*** 11,21 ****
f(0, 0);
}
__EOF__
!
if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
! CFLAGS="-O -Kinline"
else
! CFLAGS="-O -Kinline,no_host"
fi
rm -f conftest.*

--- 11,23 ----
f(0, 0);
}
__EOF__
! if test "$enable_debug" != yes; then
! CFLAGS="-O"
! fi
if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
! CFLAGS="$CFLAGS -Kinline"
else
! CFLAGS="$CFLAGS -Kinline,no_host"
fi
rm -f conftest.*



---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 11:23 AM
Neil Conway
 
Posts: n/a
Default Re: bogus unixware compiler warnings

On Mon, 2007-07-16 at 13:11 +0200, Stefan Kaltenbrunner wrote:
> I'm slowly working on submitting patches to reduce the amount of (bogus)
> compiler warnings generated by various buildfarm members.
>
> Warthog(the unixware box) generates some 1140 lines of:
>
> UX:cc: WARNING: debugging and optimization mutually exclusive; -O disabled
> UX:cc: WARNING: debugging and optimization mutually exclusive; -O disabled


Applied, thanks for the patch.

-Neil



---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:12 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com