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
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  * simulavr
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code