From 6d80856f02f7b302b6af77131bb2755d61cb2393 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 12 Nov 2017 16:34:51 -0500 Subject: [PATCH] Attempts to eliminate warnings around a meaningless value and an unused label in the 8272. --- Components/8272/i8272.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Components/8272/i8272.cpp b/Components/8272/i8272.cpp index 40723ebf7..288d68064 100644 --- a/Components/8272/i8272.cpp +++ b/Components/8272/i8272.cpp @@ -210,7 +210,7 @@ uint8_t i8272::get_register(int address) { else if(get_latest_token().type == Token::ID) goto CONCAT(header_found, __LINE__); \ \ if(index_hole_limit_) goto CONCAT(find_header, __LINE__); \ - CONCAT(header_found, __LINE__): 0;\ + CONCAT(header_found, __LINE__): (void)0;\ #define FIND_DATA() \ set_data_mode(DataMode::Scanning); \ @@ -563,7 +563,6 @@ void i8272::posit_event(int event_type) { // Sets a maximum index hole limit of 2 then waits either until it finds a header mark or sees too many index holes. // If a header mark is found, reads in the following bytes that produce a header. Otherwise branches to data not found. index_hole_limit_ = 2; - read_id_find_next_sector: FIND_HEADER(); if(!index_hole_limit_) { SetMissingAddressMark();