so that I used unsigned char normally for my characters. Seems like the right thing to do. Now I want to start using -Wall and -Wextra and I suddenly get all these warnings about difference in signedness with chr pointers etc. Any suggestions what I should do about that? Don't want to do casts every time I use standard functions. Should I just suppress this particular type of warning?
                  
                  
                
why chr WHY
 Chiyando
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          Chiyando
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  @TRGWII How would you deal with this?
don't use unsigned if using libc
BUT if you really want to keep doing that, do this or something: #define puts(str) puts((char *)str)
 Chiyando
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          Chiyando
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  Think I'll go with this. I am using libc and it just feels like I'm going against the grain too much and I'm pretty sure the benefit is not worth it
There's also just no real benefit heh
Обсуждают сегодня