Alan Coopersmith 1be66031a8 ASTSetMode: Handle -Wmaybe-uninitialized warnings
In function ‘vSetStdReg’,
    inlined from ‘ASTSetMode’ at ast_mode.c:522:9:
ast_mode.c:724:10: warning: ‘vgamodeinfo.pStdTableEntry’ may be used
 uninitialized [-Wmaybe-uninitialized]
  724 |     jReg = pStdModePtr->MISC;
      |     ~~~~~^~~~~~~~~~~~~~~~~~~
ast_mode.c: In function ‘ASTSetMode’:
ast_mode.c:496:21: note: ‘vgamodeinfo.pStdTableEntry’ was declared here
  496 |     VBIOS_MODE_INFO vgamodeinfo;
      |                     ^~~~~~~~~~~
In function ‘vSetCRTCReg’,
    inlined from ‘ASTSetMode’ at ast_mode.c:523:9:
ast_mode.c:780:70: warning: ‘vgamodeinfo.pEnhTableEntry’ may be used
 uninitialized [-Wmaybe-uninitialized]
  780 |     if ((pAST->jChipType == AST2500) && (pVGAModeInfo->pEnhTableEntry->Flags & AST2500PreCatchCRT))
      |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
ast_mode.c: In function ‘ASTSetMode’:
ast_mode.c:496:21: note: ‘vgamodeinfo.pEnhTableEntry’ was declared here
  496 |     VBIOS_MODE_INFO vgamodeinfo;
      |                     ^~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/merge_requests/15>
2025-12-09 15:04:53 +01:00
2025-07-24 20:31:45 +02:00
2012-04-03 10:01:53 +01:00
2017-01-26 14:00:22 +10:00
2012-04-03 10:01:53 +01:00
2018-11-18 12:14:44 -08:00

xf86-video-ast - ASpeed Technologies graphics driver for Xorg X server

All questions regarding this software should be directed at the Xorg mailing list:

https://lists.x.org/mailman/listinfo/xorg

The master development code repository can be found at:

https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast

Please submit bug reports and requests to merge patches there.

For patch submission instructions, see:

https://www.x.org/wiki/Development/Documentation/SubmittingPatches

Description
No description provided
Readme 1 MiB
Languages
C 98.6%
Makefile 0.7%
M4 0.6%