mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-02-14 20:31:00 +00:00
Kill some unnecessary uses of volatile
This commit is contained in:
parent
45cc3332fb
commit
fe714af37c
@ -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();
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
extern volatile bool is_debugging;
|
||||
extern bool is_debugging;
|
||||
|
||||
typedef enum {
|
||||
addr_implied = 0,
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user