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

 
 

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

Submitted by:  Steve Kappel <skappel>
Submitted on:  Wed 27 Mar 2013 10:20:56 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedComponent Version: simulavr

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

patch applied
additional warnings removed

Thanks for the patch!

Klaus Rudolph <zfrdh>
Project 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 File(s):
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by zfrdh (Posted a comment)
  • -unavailable- added by skappel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 May 2013 09:51:05 AM UTCzfrdhStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 27 Mar 2013 10:20:56 PM UTCskappelAttached File-=>Added scancodes.h.patch, #27701

    Back to the top


    Powered by Savane 3.1-cleanup