diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-28 09:21:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-28 09:02:50 +0100 |
commit | c4d760b9edf0399955d30a0dfbe5f7b1b1ed37cb (patch) | |
tree | 3f072b8348ddfc03b6571f110318c3081b7e0b00 /include/vcl | |
parent | d73871584f646cbf02467871fcfc7039ad985ff3 (diff) |
add some __attribute__ ((format
found by -Wsuggest-attribute=format
Change-Id: Ib4430805ddebf4d90e07a3f9d06fd6d832c244a4
Reviewed-on: https://gerrit.libreoffice.org/81582
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/opengl/OpenGLHelper.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx index 861af021a383..4f365c2e44ff 100644 --- a/include/vcl/opengl/OpenGLHelper.hxx +++ b/include/vcl/opengl/OpenGLHelper.hxx @@ -92,6 +92,9 @@ public: * Insert a glDebugMessage into the queue - helpful for debugging * with apitrace to annotate the output and correlate it with code. */ +#if defined __GNUC__ + __attribute__ ((format (printf, 2, 3))) +#endif static void debugMsgPrint(const int nType, const char *pFormat, ...); static void debugMsgStream(std::ostringstream const &pStream); static void debugMsgStreamWarn(std::ostringstream const &pStream); |