Browse Source

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 3 years ago
parent
commit
ca56c721a7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/gfx_compilers.h

+ 1 - 0
src/gfx_compilers.h

@@ -625,6 +625,7 @@
625 625
 		#pragma diag_remark 767						// Turn off warning: conversion from pointer to smaller integer
626 626
 		#pragma diag_remark 188						// Turn off warning: enumerated type mixed with another type
627 627
 		#pragma diag_remark 68						// Turn off warning: integer conversion resulted in a change of sign
628
+		#pragma diag_remark 111						// Turn off warning: statement is unreachable
628 629
 		#ifndef GFXINLINE							// Get the Keil definition for inline
629 630
 			#define GFXINLINE	__inline
630 631
 		#endif