vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi everyone, I recently build some C programs under AIX 5.2 with XLC V7.0. Some of them have an infinite loop in main, either with for(; while(1). These programs stop by exit()ing, and I won't change this behavior. But xlc gives us the following warning: 1500-010: (W) WARNING in main: Infinite loop. Program may not stop. Is there an xlc option, a #pragma or something to inhibit this (and only this) warning ? Christophe. |
| |||
| On Jun 12, 9:51 am, Christophe Leitienne <clnospam2.rem...@this.laposte.net> wrote: > Hi everyone, > > I recently build some C programs under AIX 5.2 with XLC V7.0. > Some of them have an infinite loop in main, either with for(; > while(1). These programs stop by exit()ing, and I won't change this > behavior. > > But xlc gives us the following warning: > 1500-010: (W) WARNING in main: Infinite loop. Program may not stop. > > Is there an xlc option, a #pragma or something to inhibit this (and only > this) warning ? > > Christophe. Hi Christophe, Just add -qsuppress=1500-010 to your compilation flags and you'll get rid of this "Infinite loop ..." xlc warning. t o o n |
| ||||
| grostoon wrote : >> Is there an xlc option, a #pragma or something to inhibit this (and only >> this) warning ? >> >> Christophe. > > > Hi Christophe, > > Just add -qsuppress=1500-010 to your compilation flags and you'll get > rid of this "Infinite loop ..." xlc warning. > > Thanks grostoon, I should have RTFM not so fast. |
| Thread Tools | |
| Display Modes | |
|
|