bugSwinput - Bugs: bug #36511, swinput 0.7.4 does not compile:...

 
 

bug #36511: swinput 0.7.4 does not compile: "swinput.c:52:2: error: invalid initializer"

Submitter:  Malte Wetz <maltewetz>
Submitted:  Mon 21 May 2012 08:50:09 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 21 May 2012 08:50:09 AM UTC, original submission:  

When building swinput 0.7.4 on Ubuntu 12.04 with gcc 4.6.3 on Kernel 3.3.6, I get the following output:

cd src && make -C /lib/modules/3.3.6/build SUBDIRS=/usr/local/src/swinput-0.7.4/src modules
make[1]: Entering directory `/usr/src/linux-3.3.6'
  CC [M]  /usr/local/src/swinput-0.7.4/src/swinput.o
/usr/local/src/swinput-0.7.4/src/swinput.c: In function 'logger':
/usr/local/src/swinput-0.7.4/src/swinput.c:52:2: error: invalid initializer
make[2]: * [/usr/local/src/swinput-0.7.4/src/swinput.o] Error 1
make[1]: * [_module_/usr/local/src/swinput-0.7.4/src] Error 2
make[1]: Leaving directory `/usr/src/linux-3.3.6'
make: * [default] Error 2

The line mentioned says: "va_list ap = NULL;" which is, to my very, very limited understanding of C, a strange line (assigning a pointer value to a non-pointer variable). Removing the "=NULL" part fixes the error and lets swinput compile but I do not know what other effects that might have.

Malte Wetz <maltewetz>

 

(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 maltewetz (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.13-cf05.
    Corresponding source code