bugXnee - Bugs: bug #63879, error: implicit declaration of...

 
 

bug #63879: error: implicit declaration of function 'xnee_check_key', 'xnee_handle_rec_key'

Submitter:  Ryan Carsten Schmidt <ryandesign>
Submitted:  Wed 08 Mar 2023 04:12:57 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
   

Wed 08 Mar 2023 05:33:11 AM UTC, comment #1: 

Later in the build another similar error occurred:


parse.c:623:7: error: implicit declaration of function 'cnee_record_replay' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      cnee_record_replay(xd);
      ^
1 error generated.


The fix is to add the declaration of `cnee_record_replay` to cnee/include/cnee_demo.h as in the attached patch.


(file #54453)

Ryan Carsten Schmidt <ryandesign>
Wed 08 Mar 2023 04:12:57 AM UTC, original submission:  

xnee 3.19 does not build when `-Werror=implicit-function-declaration` is in CFLAGS (or when a compiler is used that defaults to that behavior, such as the version of clang included with Xcode 12 or later):


xnee_fake.c:809:8: error: implicit declaration of function 'xnee_check_key' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
          if (xnee_check_key (xd)==XNEE_GRAB_DATA)
              ^
xnee_fake.c:811:15: error: implicit declaration of function 'xnee_handle_rec_key' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
              mode = xnee_handle_rec_key(xd);
                     ^


This is solved by editing the file libxnee/src/xnee_fake.c and including the header (libxnee/xnee_km.h) where those functions are defined. See attached patch.

Ryan Carsten Schmidt <ryandesign>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #54453:  cnee_demo.h.patch added by ryandesign (269B - application/octet-stream)
file #54452:  xnee_fake.c.patch added by ryandesign (312B - 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 ryandesign (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-03-08 ryandesign Attached File- Added cnee_demo.h.patch, #54453
    2023-03-08 ryandesign Attached File- Added xnee_fake.c.patch, #54452

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code