Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 03dea3bd30921c3f8f62c51ed42d788dff324d84
Ticket: 04e26c02c04596869907b5240ffa0c97457df352
Warning
User & Date: gahr 2017-04-27 10:35:36
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Warning in tclExecute.c. A branch is never taken - TclCompareTwoNumbers states as prerequisite that the arguments are known to be of numeric and not NaN - but the compiler doesn't know it.
    
    generic/tclExecute.c:9244:12: warning: variable 'type1' is used uninitialized whenever '?:' condition is true [-Wsometimes-uninitialized]                                                                                                                                 
        (void) GetNumberFromObj(NULL, valuePtr, &ptr1, &type1);                     
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                      
    generic/tclExecute.c:513:5: note: expanded from macro 'GetNumberFromObj'                                  
        ((((objPtr)->typePtr == NULL) && ((objPtr)->bytes == NULL)) ||      \       
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
    generic/tclExecute.c:9247:13: note: uninitialized use occurs here                                         
        switch (type1) {                                                            
                ^~~~~                                                               
    generic/tclExecute.c:9244:12: note: remove the '?:' if its condition is always false                      
        (void) GetNumberFromObj(NULL, valuePtr, &ptr1, &type1);                     
               ^                                                                    
    generic/tclExecute.c:513:5: note: expanded from macro 'GetNumberFromObj'                                  
        ((((objPtr)->typePtr == NULL) && ((objPtr)->bytes == NULL)) ||      \       
        ^
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "gahr"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "438e59f1f1c891b29d2528ed82d1e629cecc6336"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "gahr"
  14. subsystem changed to: "None"
  15. title changed to: "Warning"
  16. type changed to: "Patch"