Hello,

I am trying to generate a rpm package (perl-Tk-Zinc) from a source file.
No problem in fedora 40, but it fails in fedora 42
The reason seems to be due to gcc:  gcc 14 in fedora 40, and gcc 15 in fedora 15
 
Th error message is 
Field.c:1746:8: error: too many arguments to function ‘cb’; expected 0, have 9
 1746 |       (*cb)(wi, fptr, &bbox, &pm_bbox,
      |       ~^~~~ ~~
Field.c: In function ‘RenderField’:


It is due to 
static void
FieldsEngine(ZnFieldSet field_set,
             void       (*cb)())
{
  ZnWInfo       *wi = field_set->item->wi;
  /*int         i;      This one *NEED* to be an int */
  unsigned int  i, num_fields, num_chars;
  Field         fptr;
  ZnTextInfo    *ti = &wi->text_info;
  ZnBBox        lclip_bbox, fclip_bbox, bbox, *global_clip_box;
  ZnBBox        tmp_bbox, text_bbox, pm_bbox;
  ZnPoint       pts[2];
  ZnTriStrip    tristrip;
  ZnPoint       text_pos;
  ZnBool        restore = False;
  ZnDim         lwidth, lheight;
  ZnReal        val;
  int           cursor;
  int           sel_start, sel_stop;

  if (!field_set->num_fields) {
    return;
  }

with the call

      (*cb)(wi, fptr, &bbox, &pm_bbox,
            &text_pos, &text_bbox, cursor, sel_start, sel_stop);


How van I fix this?
Is there an option of gcc that I could use to avoid the the issue ?

Thanks.

===========================================================================
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
===========================================================================

-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue
  • gcc Patrick Dupre via users

Reply via email to