From ca56c721a7bf64db25b28d5b0e2ece97331cd36d Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 14 Dec 2016 15:05:45 +0100 Subject: [PATCH] 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. --- src/gfx_compilers.h | 1 + 1 file changed, 1 insertion(+) 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