Define wxFALLTHROUGH for more compilers
Avoids -Wimplicit-fallthrough warning with GCC 7
This commit is contained in:
		@@ -287,10 +287,12 @@ typedef short int WXTYPE;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* wxFALLTHROUGH is used to notate explicit fallthroughs in switch statements */
 | 
					/* wxFALLTHROUGH is used to notate explicit fallthroughs in switch statements */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if __cplusplus >= 201103L && defined(__has_warning)
 | 
					#if __cplusplus >= 201703L
 | 
				
			||||||
    #if WX_HAS_CLANG_FEATURE(cxx_attributes)
 | 
					    #define wxFALLTHROUGH [[fallthrough]]
 | 
				
			||||||
        #define wxFALLTHROUGH [[clang::fallthrough]]
 | 
					#elif __cplusplus >= 201103L && defined(__has_warning) && WX_HAS_CLANG_FEATURE(cxx_attributes)
 | 
				
			||||||
    #endif
 | 
					    #define wxFALLTHROUGH [[clang::fallthrough]]
 | 
				
			||||||
 | 
					#elif wxCHECK_GCC_VERSION(7, 0)
 | 
				
			||||||
 | 
					    #define wxFALLTHROUGH __attribute__ ((fallthrough))
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef wxFALLTHROUGH
 | 
					#ifndef wxFALLTHROUGH
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user