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.remotes/origin_old/ugfx_release_2.7
parent
09eba89afd
commit
ca56c721a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue