WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: too few arguments to function  (Read 2683 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
too few arguments to function
« on: August 29, 2009, 04:45:16 AM »
I'm getting the following error during compilation:

xkb-config.c:153: error: too few arguments to function

Is it possible to turn off this error and to continue compilation?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: too few arguments to function
« Reply #1 on: August 29, 2009, 06:21:11 AM »
Errors can't be turned off, the compiler just can't tell what the coder intended.
This error in particular should never have made it to a release..

edit: Google says this is a bug in xfce4-xkb-plugin, and here's a patch from Fedora:
http://cvs.fedoraproject.org/viewvc/rpms/xfce4-xkb-plugin/F-11/xxp-0.5.2-xklavier-api.patch?revision=1.1&view=markup

Did I guess right?
« Last Edit: August 29, 2009, 06:26:53 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: too few arguments to function
« Reply #2 on: August 29, 2009, 06:55:58 AM »
Errors can't be turned off, the compiler just can't tell what the coder intended.
This error in particular should never have made it to a release..

edit: Google says this is a bug in xfce4-xkb-plugin, and here's a patch from Fedora:
http://cvs.fedoraproject.org/viewvc/rpms/xfce4-xkb-plugin/F-11/xxp-0.5.2-xklavier-api.patch?revision=1.1&view=markup

Did I guess right?

Thanks for the ponter, I will check it.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: too few arguments to function
« Reply #3 on: August 31, 2009, 02:27:14 PM »
Thanks for the ponter, I will check it.

Great, now it compiles. While the patch is for an earlier 0.5.2 version the same change works for 0.5.3 with correcting line numbers in the second section.

Thanks for your help, Curaga!

(Next is to get it work, but this is another issue)
« Last Edit: August 31, 2009, 02:29:17 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."