Various compilation fixes for avr-gcc 10 (#9269)
This commit is contained in:
		
							parent
							
								
									6ea4b06f9f
								
							
						
					
					
						commit
						a9f7d4dccc
					
				
					 9 changed files with 33 additions and 42 deletions
				
			
		| 
						 | 
				
			
			@ -15,7 +15,6 @@ extern size_t keymapsCount;			// Total keymaps
 | 
			
		|||
extern uint32_t cChord;				// Current Chord
 | 
			
		||||
extern uint32_t stenoLayers[];		// Chords that simulate QMK layers
 | 
			
		||||
extern size_t stenoLayerCount;		// Number of simulated layers
 | 
			
		||||
uint32_t refChord;					// Reference chord for PC macro
 | 
			
		||||
 | 
			
		||||
// Function defs
 | 
			
		||||
void 			processChord(bool useFakeSteno);
 | 
			
		||||
| 
						 | 
				
			
			@ -35,7 +34,7 @@ void 			CLICK_MOUSE(uint8_t);
 | 
			
		|||
#define P(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;}
 | 
			
		||||
#define PC(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} \
 | 
			
		||||
	for(int i = 0; i < stenoLayerCount; i++) { \
 | 
			
		||||
		refChord = stenoLayers[i] | chord; \
 | 
			
		||||
		uint32_t refChord = stenoLayers[i] | chord; \
 | 
			
		||||
		if (cChord == (refChord)) { if (!lookup) {act;} return refChord;}; \
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue