projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug #524209
[fw/sdcc]
/
src
/
SDCClabel.c
diff --git
a/src/SDCClabel.c
b/src/SDCClabel.c
index 5c26ce6739381c4b6e41874126b4cae62374e45d..99e7252a237550574614dae93a4843bcca17bc88 100644
(file)
--- a/
src/SDCClabel.c
+++ b/
src/SDCClabel.c
@@
-121,7
+121,9
@@
labelIfx (iCode * ic)
{
/* get rid of this if */
{
/* get rid of this if */
- werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ if (!options.lessPedantic) {
+ werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ }
loop->prev->next = loop->next;
loop->next->prev = loop->prev;
hTabDeleteItem (&labelRef,
loop->prev->next = loop->next;
loop->next->prev = loop->prev;
hTabDeleteItem (&labelRef,
@@
-136,7
+138,9
@@
labelIfx (iCode * ic)
IC_FALSE (loop)->key == IC_LABEL (loop->next)->key)
{
/* get rid of this if */
IC_FALSE (loop)->key == IC_LABEL (loop->next)->key)
{
/* get rid of this if */
- werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ if (!options.lessPedantic) {
+ werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ }
loop->prev->next = loop->next;
loop->next->prev = loop->prev;
hTabDeleteItem (&labelRef,
loop->prev->next = loop->next;
loop->next->prev = loop->prev;
hTabDeleteItem (&labelRef,
@@
-156,8
+160,9
@@
labelIfx (iCode * ic)
((IC_TRUE (loop) && IC_TRUE (loop)->key == IC_LABEL (loop->next)->key) ||
(IC_FALSE (loop) && IC_FALSE (loop)->key == IC_LABEL (loop->next)->key)))
{
((IC_TRUE (loop) && IC_TRUE (loop)->key == IC_LABEL (loop->next)->key) ||
(IC_FALSE (loop) && IC_FALSE (loop)->key == IC_LABEL (loop->next)->key)))
{
-
- werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ if (!options.lessPedantic) {
+ werror (W_CONTROL_FLOW, loop->filename, loop->lineno);
+ }
loop->prev->next = loop->next;
loop->next->prev = loop->prev;
hTabDeleteItem (&labelRef,
loop->prev->next = loop->next;
loop->next->prev = loop->prev;
hTabDeleteItem (&labelRef,