Kill some unnecessary uses of volatile

This commit is contained in:
Aaron Culliney 2019-06-28 18:30:45 -07:00
parent 45cc3332fb
commit fe714af37c
7 changed files with 7 additions and 7 deletions

View File

@ -3563,7 +3563,7 @@ void init_lex (char *str, int size) {
#define WONT_EXECUTE 0
static volatile void *hack_warnings = &hack_warnings;
if (hack_warnings == WONT_EXECUTE) {
// flex defines these, but we don't use 'em ...
// this section is just here to kill warnings about unused input() and yyunput()
char hack[2];
yyunput('\0', hack);
input();

View File

@ -19,7 +19,7 @@
#include "common.h"
extern volatile bool is_debugging;
extern bool is_debugging;
typedef enum {
addr_implied = 0,

View File

@ -998,7 +998,7 @@ void init_lex (char *str, int size) {
#define WONT_EXECUTE 0
static volatile void *hack_warnings = &hack_warnings;
if (hack_warnings == WONT_EXECUTE) {
// flex defines these, but we don't use 'em ...
// this section is just here to kill warnings about unused input() and yyunput()
char hack[2];
yyunput('\0', hack);
input();

View File

@ -37,7 +37,7 @@ static bool input_deterministically = false; // slows down testing ...
static stepping_struct_s stepping_struct = { 0 };
static unsigned int stepping_timeout = 0;
volatile bool is_debugging = false;
bool is_debugging = false;
extern pthread_mutex_t interface_mutex;
extern pthread_cond_t cpu_thread_cond;

View File

@ -1429,7 +1429,7 @@ TEST test_BPL(int8_t off, bool flag, uint16_t addrs) {
PASS();
}
TEST test_BRA(volatile int8_t off, volatile bool flag, volatile uint16_t addrs) {
TEST test_BRA(int8_t off, bool flag, uint16_t addrs) {
uint8_t flags = 0x0;
run_args.cpu65_pc = addrs;

View File

@ -19,7 +19,7 @@ static GLTouchJoyVariant joyVariant = { 0 };
static struct {
video_frame_callback_fn frameCallback;
volatile unsigned long spinlock;
unsigned long spinlock;
unsigned long tapDelayFrameCount;
interface_touch_event_t currEventType;

View File

@ -64,7 +64,7 @@ typedef struct subvariant_s {
static struct {
video_frame_callback_fn frameCallback;
volatile unsigned long spinlock;
unsigned long spinlock;
subvariant_s axis;
subvariant_s butt;