bugSimulavr: an AVR simulator - Bugs: bug #38612, Compile errors on OS X in...

 
 

bug #38612: Compile errors on OS X in scancodes.h

Submitter:  Steve Kappel <skappel>
Submitted:  Wed 27 Mar 2013 10:20:56 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Component Version:  * simulavr
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 20 May 2013 09:51:05 AM UTC, comment #1: 

patch applied
additional warnings removed

Thanks for the patch!

Klaus Rudolph <zfrdh>
Group administrator
Wed 27 Mar 2013 10:20:56 PM UTC, original submission:  

Making all in atmel_key
avr-gcc -mmcu=atmega128 -I. -DF_CPU=4000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes  -c -o kb.o ../../../simulavr-1.0.0/examples/atmel_key/kb.c
In file included from ../../../simulavr-1.0.0/examples/atmel_key/kb.c:14:0:
../../../simulavr-1.0.0/examples/atmel_key/scancodes.h:18:13: error: variable 'unshifted' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
../../../simulavr-1.0.0/examples/atmel_key/scancodes.h:19:1: warning: missing braces around initializer [-Wmissing-braces]
../../../simulavr-1.0.0/examples/atmel_key/scancodes.h:19:1: warning: (near initialization for 'unshifted[0]') [-Wmissing-braces]
../../../simulavr-1.0.0/examples/atmel_key/scancodes.h:90:13: error: variable 'shifted' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
../../../simulavr-1.0.0/examples/atmel_key/scancodes.h:91:1: warning: missing braces around initializer [-Wmissing-braces]
../../../simulavr-1.0.0/examples/atmel_key/scancodes.h:91:1: warning: (near initialization for 'shifted[0]') [-Wmissing-braces]

Patch attached.

Steve Kappel <skappel>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #27701:  scancodes.h.patch added by skappel (4KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zfrdh (Posted a comment)
  • -email is unavailable- added by skappel (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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-20 zfrdh StatusNone Fixed
        Open/ClosedOpen Closed
    2013-03-27 skappel Attached File- Added scancodes.h.patch, #27701

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code