bugSimulavr: an AVR simulator - Bugs: bug #65946, format specifies type 'unsigned...

 
 

bug #65946: format specifies type 'unsigned long' but the argument has type 'ELFIO::Elf64_Addr' (aka 'unsigned long long') [-Wformat

Submitter:  Ryan Carsten Schmidt <ryandesign>
Submitted:  Wed 03 Jul 2024 09:43:12 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Component Version:  * simulavr
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 Jul 2024 09:43:12 PM UTC, original submission:  

These warnings occur when building 1.1.0 with recent clang:


/opt/local/var/macports/build/_Volumes_Shared_macports-ports_emulators_simulavr/simulavr/work/simulavr-release-1.1.0/libsim/avrreadelf.cpp:110:33: warning: format specifies type 'unsigned long' but the argument has type 'ELFIO::Elf64_Addr' (aka 'unsigned long long') [-Wformat]
                                value);
                                ^~~~~
/opt/local/var/macports/build/_Volumes_Shared_macports-ports_emulators_simulavr/simulavr/work/simulavr-release-1.1.0/include/avrerror.h:133:73: note: expanded from macro 'avr_warning'
#define avr_warning(...) sysConHandler.vfwarning(__FILE__, __LINE__, ## __VA_ARGS__)
                                                                        ^~~~~~~~~~~
/opt/local/var/macports/build/_Volumes_Shared_macports-ports_emulators_simulavr/simulavr/work/simulavr-release-1.1.0/libsim/avrreadelf.cpp:152:31: warning: format specifies type 'unsigned long' but the argument has type 'ELFIO::Elf_Xword' (aka 'unsigned long long') [-Wformat]
                              filesize);
                              ^~~~~~~~
/opt/local/var/macports/build/_Volumes_Shared_macports-ports_emulators_simulavr/simulavr/work/simulavr-release-1.1.0/include/avrerror.h:135:71: note: expanded from macro 'avr_error'
#define avr_error(...)   sysConHandler.vffatal(__FILE__, __LINE__, ## __VA_ARGS__)
                                                                      ^~~~~~~~~~~
/opt/local/var/macports/build/_Volumes_Shared_macports-ports_emulators_simulavr/simulavr/work/simulavr-release-1.1.0/libsim/avrreadelf.cpp:194:31: warning: format specifies type 'unsigned long' but the argument has type 'ELFIO::Elf_Xword' (aka 'unsigned long long') [-Wformat]
                              filesize);
                              ^~~~~~~~
/opt/local/var/macports/build/_Volumes_Shared_macports-ports_emulators_simulavr/simulavr/work/simulavr-release-1.1.0/include/avrerror.h:135:71: note: expanded from macro 'avr_error'
#define avr_error(...)   sysConHandler.vffatal(__FILE__, __LINE__, ## __VA_ARGS__)
                                                                      ^~~~~~~~~~~
3 warnings generated.


Ryan Carsten Schmidt <ryandesign>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ryandesign (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.15-26b0.
    Corresponding source code