aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@embedded.pro>2016-12-14 15:05:45 +0100
committerJoel Bodenmann <joel@embedded.pro>2016-12-14 15:05:45 +0100
commitca56c721a7bf64db25b28d5b0e2ece97331cd36d (patch)
tree0093acda52ec081740f88c64b1202d62db15fd2e
parent09eba89afd3667371aa8771e2ab1f2ba134cacd8 (diff)
downloaduGFX-ca56c721a7bf64db25b28d5b0e2ece97331cd36d.tar.gz
uGFX-ca56c721a7bf64db25b28d5b0e2ece97331cd36d.tar.bz2
uGFX-ca56c721a7bf64db25b28d5b0e2ece97331cd36d.zip
Adding #prama for Keil compiler to suppress "statement is unreachable" warning.
Commit r57667124 removed certain unreachable statements as Keil/ARMCC complains about those. However, most other compilers (including GCC) complain if a function with a non-void return type have no return statement in them. Therefore, that commit was reverted (Revert commit is r509eba89) and pragams are added to the Keil compiler configuration instead.
-rw-r--r--src/gfx_compilers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gfx_compilers.h b/src/gfx_compilers.h
index 2449c05e..46d6c8b1 100644
--- a/src/gfx_compilers.h
+++ b/src/gfx_compilers.h
@@ -625,6 +625,7 @@
#pragma diag_remark 767 // Turn off warning: conversion from pointer to smaller integer
#pragma diag_remark 188 // Turn off warning: enumerated type mixed with another type
#pragma diag_remark 68 // Turn off warning: integer conversion resulted in a change of sign
+ #pragma diag_remark 111 // Turn off warning: statement is unreachable
#ifndef GFXINLINE // Get the Keil definition for inline
#define GFXINLINE __inline
#endif