Add GCC printf format check to _glfwInputError

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

Closes #622.
master
Emmanuel Gil Peyrot ago%!(EXTRA string=10 years) committed by Camilla Berglund
parent efdbfd3883
commit dc5e56c2f3
  1. 6
      src/internal.h

@ -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…
Cancel
Save