﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6395	Some generated C code shows up in red in OMedit	Francesco Casella	Adeel Asghar	"Simulate model {{{Modelica.Blocks.Examples.Filter}}}. Some red C code lines scroll by, e.g.
{{{
Filter_functions.c:28:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
  if((_order == ((modelica_integer) 1)))
      ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Filter_functions.c:28:14: note: remove extraneous parentheses around the comparison to silence this warning
  if((_order == ((modelica_integer) 1)))
     ~       ^                        ~
Filter_functions.c:28:14: note: use '=' to turn this equality comparison into an assignment
  if((_order == ((modelica_integer) 1)))
             ^~
             =
}}}
I understand none of this is really a problem, so it shouldn't really show up in red. Three possible solutions:
- Only show errors in red, not warnings
- Do not generate useless parentheses
- Add the appropriate message suppression flags

"	defect	closed	high	1.17.0	OMEdit	1.18.0-dev	fixed		
