removed broken #define static ..., cast the intermediate result to (void) to avoid warnings instead
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5848 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5847b78fb2
commit
7d2bb07ed9
@ -297,7 +297,5 @@
|
||||
#define PCISEQR(A) (NM_2REG8(NM2PCI8_SEQIND) = (NMSEQX_##A), NM_2REG8(NM2PCI8_SEQDAT))
|
||||
|
||||
/* read and write from ISA ATTRIBUTE indexed registers */
|
||||
/* define DUMMY to prevent compiler warnings */
|
||||
#define static uint8 DUMMY;
|
||||
#define ISAATBW(A,B)(DUMMY = ISARB(INSTAT1), ISAWB(ATTRINDW, ((NMATBX_##A) | 0x20)), ISAWB(ATTRDATW, (B)))
|
||||
#define ISAATBR(A) (DUMMY = ISARB(INSTAT1), ISAWB(ATTRINDW, ((NMATBX_##A) | 0x20)), ISARB(ATTRDATR))
|
||||
#define ISAATBW(A,B)((void)ISARB(INSTAT1), ISAWB(ATTRINDW, ((NMATBX_##A) | 0x20)), ISAWB(ATTRDATW, (B)))
|
||||
#define ISAATBR(A) ((void)ISARB(INSTAT1), ISAWB(ATTRINDW, ((NMATBX_##A) | 0x20)), ISARB(ATTRDATR))
|
||||
|
Loading…
Reference in New Issue
Block a user