1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Support compiling with gcc -pedantic (don't use a bogus, null cast).

This commit is contained in:
Bruce Evans 1998-04-19 15:22:48 +00:00
parent eb57f92476
commit 78a8182665
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35296
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.191 1998/04/06 15:43:29 peter Exp $
* $Id: pmap.c,v 1.192 1998/04/15 17:45:02 bde Exp $
*/
/*
@ -454,7 +454,7 @@ pmap_set_opt(unsigned *pdir) {
if (pseflag && (cpu_feature & CPUID_PSE)) {
load_cr4(rcr4() | CR4_PSE);
if (pdir4mb) {
(unsigned) pdir[KPTDI] = pdir4mb;
pdir[KPTDI] = pdir4mb;
}
}

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.191 1998/04/06 15:43:29 peter Exp $
* $Id: pmap.c,v 1.192 1998/04/15 17:45:02 bde Exp $
*/
/*
@ -454,7 +454,7 @@ pmap_set_opt(unsigned *pdir) {
if (pseflag && (cpu_feature & CPUID_PSE)) {
load_cr4(rcr4() | CR4_PSE);
if (pdir4mb) {
(unsigned) pdir[KPTDI] = pdir4mb;
pdir[KPTDI] = pdir4mb;
}
}