Skip to content

Commit

Permalink
tui: Add __maybe_unused
Browse files Browse the repository at this point in the history
Parameter 'msg' is not used when CFG_TEE_TA_LOG_LEVEL=0, so add
__maybe_unused.

Fixes OP-TEE#848.

Signed-off-by: Jerome Forissier <[email protected]>
Reviewed-by: Joakim Bech <[email protected]>
Tested-by: Joakim Bech <[email protected]> (QEMU, HiKey 32/64)
Reviewed-by: Jens Wiklander <[email protected]>
  • Loading branch information
jforissier committed Jun 13, 2016
1 parent 40c1fab commit 53b2834
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/libutee/tui/image_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include <compiler.h>
#include <stdlib.h>
#include <png.h>
#include <tee_api.h>
Expand All @@ -39,7 +40,7 @@ struct image_work {
const uint8_t *end_data;
};

static void error_cb(png_structp png_ptr, png_const_charp msg)
static void error_cb(png_structp png_ptr, png_const_charp msg __maybe_unused)
{
struct image_work *w;

Expand Down

0 comments on commit 53b2834

Please sign in to comment.