[Bug 1664] New: termios01/init.c: overflow in implicit constant conversion

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Mon Aug 9 21:35:39 CDT 2010


           Summary: termios01/init.c: overflow in implicit constant
           Product: RTEMS
           Version: unknown
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: testing
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: ralf.corsepius at rtems.org

I am facing the flowing warning when building CVS-HEAD for the avr:

testsuites/libtests/termios01/init.c:476: warning: overflow in implicit
constant conversion

The offending line reads:
  rc = tcsetattr( 0, 0x12345, &t );

The warning above seemingly complains about the 0x12345 constant, which too
large to fit into an "int" (16 bit on the avr).

I'd suggest to shorten the constant or to use a different constant 
(Say (TCSAFLUSH |  TCSADRAIN | TCSANOW)+ or similar, or may-be INT_MAX)

Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the rtems-bugs mailing list