mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
Internal: Add gcc printf format to _glfwInputError.
This allows it to print a warning whenever _glfwInputError format specifiers aren’t used correctly.
This commit is contained in:
parent
af5b82acf5
commit
f9c74e60e8
@ -784,7 +784,11 @@ void _glfwInputMonitorChange(void);
|
||||
* description.
|
||||
* @ingroup event
|
||||
*/
|
||||
void _glfwInputError(int error, const char* format, ...);
|
||||
void _glfwInputError(int error, const char* format, ...)
|
||||
#ifdef __GNUC__
|
||||
__attribute__((format(printf, 2, 3)))
|
||||
#endif
|
||||
;
|
||||
|
||||
/*! @brief Notifies dropped object over window.
|
||||
* @param[in] window The window that received the event.
|
||||
|
Loading…
Reference in New Issue
Block a user