Skip to content
Snippets Groups Projects
Commit dc5e56c2 authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot Committed by Camilla Löwy
Browse files

Add GCC printf format check to _glfwInputError

This allows it to print a warning whenever _glfwInputError format
specifiers aren't used correctly.

Closes #622.
parent efdbfd38
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment