[Bug 37126] New: PVS-Studio Error: Printing the result of identical functions

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Aug 16 13:28:17 CDT 2014


https://bugs.winehq.org/show_bug.cgi?id=37126

            Bug ID: 37126
           Summary: PVS-Studio Error: Printing the result of identical
                    functions
           Product: Wine
           Version: 1.7.22
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: lukebenes at hotmail.com

PVS-Studio identifies Printing the result of identical functions Error,V681.
The language standard does not define an order in which the 'tlb_read_byte'
functions will be called during evaluation of arguments. tlb.c 650

...
printf("\\%2.2x \\%2.2x\n", tlb_read_byte(), tlb_read_byte());
...

According to the C++ language standard, the sequence of computing a function's
actual arguments is not defined. Which function will be called first depends on
the compiler, compilation parameters, etc.

details on the V681 error here: http://www.viva64.com/en/d/0315/

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list