Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings observed, when libfyaml is built without autotools #125

Open
kanjoe24 opened this issue Oct 10, 2024 · 0 comments
Open

Warnings observed, when libfyaml is built without autotools #125

kanjoe24 opened this issue Oct 10, 2024 · 0 comments

Comments

@kanjoe24
Copy link

kanjoe24 commented Oct 10, 2024

Warnings observed, when libfyaml is built without autotools as described in the description:

Steps to reproduce:

  1. git clone https://github.com/pantoniou/libfyaml.git
  2. cp inprogram.c into libfyaml/.
    //inprogram.c is received from https://github.com/pantoniou/libfyaml#libfyaml-example-using-simplified-inprogram-yaml-generation
  3. Warnings are observed.
libfyaml (master)$ gcc -ggdb -O0 -Wall src/lib/*.c src/thread/*.c src/util/*.c src/xxhash/*.c inprogram.c -I./include/ -I./src/util/ -I./src/xxhash/ -I./src/lib/ -I./src/thread/
src/lib/fy-diag.c: In function ‘fy_diag_vprintf’:
src/lib/fy-diag.c:405:22: warning: implicit declaration of function ‘vasprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
  405 |                 rc = vasprintf(&buf, fmt, ap);
      |                      ^~~~~~~~~
      |                      vsprintf
src/lib/fy-doc.c: In function ‘fy_node_get_parent_address’:
src/lib/fy-doc.c:4816:23: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
 4816 |                 ret = asprintf(&path, "%d", idx);
      |                       ^~~~~~~~
      |                       vsprintf
src/lib/fy-event.c: In function ‘fy_emit_scalar_vprintf’:
src/lib/fy-event.c:593:14: warning: implicit declaration of function ‘vasprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
  593 |         rc = vasprintf(&buf, fmt, ap);
      |              ^~~~~~~~~
      |              vsprintf
src/lib/fy-input.c: In function ‘fy_input_create’:
src/lib/fy-input.c:1014:23: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
 1014 |                 ret = asprintf(&fyi->name, "<fd-%d>", fyic->fd.fd);
      |                       ^~~~~~~~
      |                       vsprintf
src/lib/fy-parse.c: In function ‘fy_library_version’:
src/lib/fy-parse.c:40:2: warning: #warning No version defined [-Wcpp]
   40 | #warning No version defined
      |  ^~~~~~~
src/lib/fy-token.c: In function ‘fy_token_debug_text’:
src/lib/fy-token.c:1549:14: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
 1549 |         rc = asprintf(&buf, "%s:%.*s%s", typetxt, wlen, text, wlen < (int)length ? "..." : "");
      |              ^~~~~~~~
      |              vsprintf
src/lib/fy-walk.c: In function ‘fy_walk_result_vdump’:
src/lib/fy-walk.c:68:22: warning: implicit declaration of function ‘vasprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
   68 |                 rc = vasprintf(&banner, fmt, ap);
      |                      ^~~~~~~~~
      |                      vsprintf
src/lib/fy-walk.c: In function ‘fy_scalar_walk_result_to_expr’:
src/lib/fy-walk.c:4371:22: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
 4371 |                 rc = asprintf(&buf, "%d", (int)fwr->number);
      |                      ^~~~~~~~
      |                      vsprintf
jpn323@janus ~/workspace/libfyaml/libfyaml (master)$ 
jpn323@janus ~/workspace/libfyaml/libfyaml (master)$ 
jpn323@janus ~/workspace/libfyaml/libfyaml (master)$ ./a.out 
# invoice number was 34843
# given name is Chris
bill-to: &id001
  address:
    lines: |
      458 Walkman Dr.
      Suite #292
  delivery-address:
    lines: |
      1226 Windward Ave.
  family: Dumars
  given: Chris
  spouse: Doris
date: !!str 2001-01-23
invoice: 34844

@kanjoe24 kanjoe24 changed the title Warnings observed, libfyaml is built without autotools Warnings observed, when libfyaml is built without autotools Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant