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

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Aug 10 02:35:39 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1664

           Summary: termios01/init.c: overflow in implicit constant
                    conversion
           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 bugs mailing list