oraluben commented on PR #439:
URL: https://github.com/apache/tvm-ffi/pull/439#issuecomment-3882261589

   Actually I'm not sure if it's a false positive. Based on the other two 
warning ignored, this seems safe to add.
   
   Also FYI, when building (tilelang's) tvm with gcc-14 I've seen a new warning 
repeats very much time:
   ```
   DEBUG /t2/3rdparty/tvm/include/tvm/tir/op.h: In function ‘tvm::PrimExpr 
tvm::nextafter(PrimExpr, PrimExpr, Span)’:                                      
                                                        
   DEBUG /t2/3rdparty/tvm/include/tvm/tir/op.h:766:22: warning: possibly 
dangling reference to a temporary [-Wdangling-reference]
   DEBUG   766 |     static const Op& op = Op::Get("tir." #OpName);             
        \                 
   DEBUG       |                      ^~                                        
                                                                                
               
   DEBUG /t2/3rdparty/tvm/include/tvm/tir/op.h:771:1: note: in expansion of 
macro ‘TVM_DECLARE_INTRIN_BINARY’                                               
                                                        
   DEBUG   771 | TVM_DECLARE_INTRIN_BINARY(nextafter);                          
                                                                           
   DEBUG       | ^~~~~~~~~~~~~~~~~~~~~~~~~                                      
                                                                                
                                                   
   DEBUG /t2/3rdparty/tvm/include/tvm/tir/op.h:766:34: note: the temporary was 
destroyed at the end of the full expression 
‘tvm::Op::Get(tvm::ffi::String(((const char*)"tir.nextafter")))’                
         
   DEBUG   766 |     static const Op& op = Op::Get("tir." #OpName);             
        \                                                                       
                                                    
   DEBUG       |                           ~~~~~~~^~~~~~~~~~~~~~~~              
                                                                                
                                                    
   DEBUG /t2/3rdparty/tvm/include/tvm/tir/op.h:771:1: note: in expansion of 
macro ‘TVM_DECLARE_INTRIN_BINARY’                                               
                                                        
   DEBUG   771 | TVM_DECLARE_INTRIN_BINARY(nextafter);                          
                                                                                
                                                    
   DEBUG       | ^~~~~~~~~~~~~~~~~~~~~~~~~
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to