diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-03-16 02:16:43 -0300 |
---|---|---|
committer | Y.C. Chen <yc_chen@aspeedtech.com> | 2008-03-18 18:54:03 +0800 |
commit | 33cc790b35f2ad19ea68867d6a089f7b827f8334 (patch) | |
tree | 4158a54142d945e599bf98088a6c8dc7c09c78a4 /src/ast_tool.c | |
parent | 88944bd72555056c10dfcf87eb1a98c9ecf704bc (diff) |
Compile warning fixes.
Declare ulGetCMDQLength as static, and don't declare a variable if
XSERVER_LIBPCIACCESS is defined.
There is a lot of prototypes defined in some c files, that would be
better to be moved to the appropriate header, to make sure definition
matches prototype, but not done for now.
Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
Diffstat (limited to 'src/ast_tool.c')
-rw-r--r-- | src/ast_tool.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ast_tool.c b/src/ast_tool.c index 11d3085..157a869 100644 --- a/src/ast_tool.c +++ b/src/ast_tool.c @@ -112,10 +112,9 @@ ASTUnmapMem(ScrnInfoPtr pScrn) Bool ASTMapMMIO(ScrnInfoPtr pScrn) { - int mmioFlags; ASTRecPtr pAST = ASTPTR(pScrn); - #ifndef XSERVER_LIBPCIACCESS + int mmioFlags; #if !defined(__alpha__) mmioFlags = VIDMEM_MMIO | VIDMEM_READSIDEEFFECT; |