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

build error on msys2 #66

Open
theotheroracle opened this issue Aug 6, 2023 · 0 comments · May be fixed by #67
Open

build error on msys2 #66

theotheroracle opened this issue Aug 6, 2023 · 0 comments · May be fixed by #67

Comments

@theotheroracle
Copy link

gcc -std=c99 -Wall -pedantic -Wextra -Werror -march=nocona -msahf -mtune=generic -O2 -pipe   -c -o jshon.o jshon.c
In file included from jshon.c:2:
jshon.c: In function ‘remove_jsonp_callback’:
jshon.c:425:44: error: array subscript has type ‘char’ [-Werror=char-subscripts]
  425 |     while (first < last && JSON_IDENTIFIER(*first))
      |                                            ^~~~~~
jshon.c:425:28: note: in expansion of macro ‘JSON_IDENTIFIER’
  425 |     while (first < last && JSON_IDENTIFIER(*first))
      |                            ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: jshon.o] Error 1
==> ERROR: A failure occurred in build().

build if i remove the -Werror flag, i'm not sure why that's part of the makefile tbh

@theotheroracle theotheroracle linked a pull request Aug 6, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant