[Bug 2008] New: Problems compiling with gcc 4.0
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Dec 3 16:45:17 PST 2004
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=2008
Summary: Problems compiling with gcc 4.0
Product: xorg
Version: CVS_head
Platform: DEC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Server/general
AssignedTo: xorg-bugzilla-noise at freedesktop.org
ReportedBy: falk at debian.org
Hi,
the current CVS doesn't compile with gcc 4.0 because of mixing static
and non-static declarations, which doesn't make any sense and is disallowed in
gcc 4.0:
gcc -c -O2 -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations
-Wredundant-decls -Wnested-externs -Wundef -fno-merge-constants
-I../../../exports/include/X11 -I. -I../mfb -I../mi -I../cfb
-I../include -I../../../include -I../../../lib
-I../../../include/extensions -I../../../include/fonts -I../../../lib/X11
-I../../.. -I../../../exports/include -Dlinux -D__alpha__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -DSHAPE
-DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT
-DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DRANDR -DXFIXES
-DDAMAGE -DCOMPOSITE -DXEVIE -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV
-DSINGLEDEPTH -DXFreeXDGA -DXvExtension
-DXFree86LOADER -DXFree86Server
-DXF86VIDMODE -DXvMCExtension
-DSMART_SCHEDULE -DBUILDDEBUG
-DXResExtension
-DX_BYTE_ORDER=X_LITTLE_ENDIAN
-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((1) * 1000) + 99)"
-D_XSERVER64 -DJENSEN_SUPPORT -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO
-DXPRINTDIR=\"/usr/X11R6/lib/X11/xserver\" -DXPRASTERDDX -DXPPCLDDX
-DXPMONOPCLDDX -DXPPSDDX -DHAS_MKSTEMP -UXFree86LOADER
-D_XP_PRINT_SERVER_ attributes.c
In file included from AttrValid.h:38,
from attributes.h:38,
from attributes.c:60:
Oid.h:208: warning: function declaration isn't a prototype
In file included from attributes.h:38,
from attributes.c:60:
AttrValid.h:181: warning: function declaration isn't a prototype
attributes.c:144: warning: function declaration isn't a prototype
attributes.c: In function 'XpGetConfigDirBase':
attributes.c:152: warning: assignment from incompatible pointer type
attributes.c:152: warning: comparison of distinct pointer types lacks a cast
attributes.c:153: warning: assignment from incompatible pointer type
attributes.c:155: warning: return from incompatible pointer type
attributes.c: In function 'BuildPrinterAttrs':
attributes.c:327: warning: unused variable 'dirName'
attributes.c: In function 'XpGetOneAttribute':
attributes.c:627: warning: unused variable 'retVal'
attributes.c: In function 'AppendEntry':
attributes.c:819: warning: 'return' with no value, in function returning non-voi
d
attributes.c: In function 'XpGetAttributes':
attributes.c:878: warning: unused variable 'retVal'
attributes.c: At top level:
attributes.c:1094: error: static declaration of 'ExecCommand' follows non-static
declaration
attributes.h:113: error: previous declaration of 'ExecCommand' was here
attributes.c: In function 'SendFileToCommand':
attributes.c:1187: warning: implicit declaration of function 'initgroups'
attributes.c:1187: warning: nested extern declaration of 'initgroups'
attributes.c:1202: warning: unused variable 'res'
attributes.c: At top level:
attributes.c:1223: warning: redundant redeclaration of 'ReplaceAnyString'
attributes.h:108: warning: previous declaration of 'ReplaceAnyString' was here
attributes.c: In function 'VectorizeCommand':
attributes.c:1440: warning: unused variable 'i'
attributes.c:1439: warning: unused variable 'curTok'
attributes.c: In function 'XpSubmitJob':
attributes.c:1466: warning: unused variable 'cmdOpt'
attributes.c: In function 'XpGetTrayMediumFromContext':
attributes.c:1592: warning: unused variable 'pLast'
attributes.c:1592: warning: unused variable 'pE'
attributes.c:1592: warning: unused variable 'pS'
make[5]: *** [attributes.o] Error 1
make[5]: Leaving directory `/src/xc-2004.12.04/programs/Xserver/Xprint'
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the xorg-bugzilla-noise
mailing list