mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	Marked all fmt + va_list functions with format attribute so GCC/Clang can warn about them. Not ignoring -Wsuggest-attribute=format anymore for GCC/Clang.
This commit is contained in:
		| @@ -2298,7 +2298,7 @@ struct ExampleAppConsole | ||||
|         ScrollToBottom = true; | ||||
|     } | ||||
|  | ||||
|     void    AddLog(const char* fmt, ...) IM_PRINTFARGS(2) | ||||
|     void    AddLog(const char* fmt, ...) IM_FMTARGS(2) | ||||
|     { | ||||
|         char buf[1024]; | ||||
|         va_list args; | ||||
| @@ -2560,7 +2560,7 @@ struct ExampleAppLog | ||||
|  | ||||
|     void    Clear()     { Buf.clear(); LineOffsets.clear(); } | ||||
|  | ||||
|     void    AddLog(const char* fmt, ...) IM_PRINTFARGS(2) | ||||
|     void    AddLog(const char* fmt, ...) IM_FMTARGS(2) | ||||
|     { | ||||
|         int old_size = Buf.size(); | ||||
|         va_list args; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user