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.
Joel Bodenmann 2016-12-14 15:05:45 +01:00
parent 09eba89afd
commit ca56c721a7
1 changed files with 1 additions and 0 deletions

View File

@ -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