summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1998-12-14 06:16:13 +0000
committerdillon <dillon@FreeBSD.org>1998-12-14 06:16:13 +0000
commit2d9e52659ce15a8f818a51abfda4613167fdc974 (patch)
treea877f733c03f5ac28a410e677a071ad706ad580a /sys/amd64
parent9138a599881a4341ddb57f69e74575abec3aab2e (diff)
downloadFreeBSD-src-2d9e52659ce15a8f818a51abfda4613167fdc974.zip
FreeBSD-src-2d9e52659ce15a8f818a51abfda4613167fdc974.tar.gz
Get rid of uninitialized variable warnings. No bugs found, just
preinitializing some locals to 0 to get rid of the compiler warnings.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/initcpu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c
index 9f1f2a9..9fb8008 100644
--- a/sys/amd64/amd64/initcpu.c
+++ b/sys/amd64/amd64/initcpu.c
@@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: initcpu.c,v 1.13 1998/05/16 14:38:10 kato Exp $
+ * $Id: initcpu.c,v 1.14 1998/10/06 13:16:23 kato Exp $
*/
#include "opt_cpu.h"
@@ -661,7 +661,8 @@ DB_SHOW_COMMAND(cyrixreg, cyrixreg)
{
u_long eflags;
u_int cr0;
- u_char ccr0, ccr1, ccr2, ccr3, ccr4, ccr5, pcr0;
+ u_char ccr1, ccr2, ccr3;
+ u_char ccr0 = 0, ccr4 = 0, ccr5 = 0, pcr0 = 0;
cr0 = rcr0();
if (strcmp(cpu_vendor,"CyrixInstead") == 0) {
OpenPOWER on IntegriCloud