Closed plentz closed 3 years ago
Trying to install it on MacOS Big Sur shows the following problem:
┃┃ Gem::Ext::BuildError: ERROR: Failed to build gem native extension. ┃┃ current directory: /Users/plentz/.gem/ruby/2.7.2/gems/rdiscount-2.2.0.1/ext ┃┃ /opt/rubies/2.7.2/bin/ruby -I /opt/rubies/2.7.2/lib/ruby/2.7.0 -r ./siteconf20210117-58583-mrp5in.rb extconf.rb
rdiscount 2.2.0.2 fixed the compilation error.
2.2.0.2
", f); ┃┃ ^~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:887:13: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("
", "
" }; ┃┃ ^~ ┃┃ generate.c:1618:34: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static char *Begin[] = { "", "
" }; ┃┃ ^~~~~ ┃┃ generate.c:1618:41: warning: initializing 'char *' with an expression of type 'const char [31]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static char *Begin[] = { "", "
" }; ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ generate.c:1619:30: warning: initializing 'char *' with an expression of type 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static char *End[] = { "", "
", f); ┃┃ ^~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1669:13: warning: passing 'const char [14]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("
", ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ ./cstring.h:73:38: note: passing argument to parameter here ┃┃ extern int Csprintf(Cstring *, char *, ...); ┃┃ ^ ┃┃ generate.c:1831:21: warning: passing 'const char [47]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Csprintf(&m->out, "↩", ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ ./cstring.h:73:38: note: passing argument to parameter here ┃┃ extern int Csprintf(Cstring *, char *, ...); ┃┃ ^ ┃┃ generate.c:1833:21: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Csprintf(&m->out, "
It successfully installs after this changes.
Trying to install it on MacOS Big Sur shows the following problem:
rdiscount
2.2.0.2
fixed the compilation error.Click to expand
``` ➜ ejson git:(master) ✗ dev up ⭑ Global System Setup ┏━━ 👩💻 1/5 Homebrew setup ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃ 𝒾 Remove OpenSSL 1.0-linked Rubies ┃ ✓ Remove OpenSSL 1.0-linked Rubies: done ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (0.12s) ━━ ┏━━ 👩💻 2/5 Homebrew Packages ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃ ⭑ install homebrew ┃ ⭑ upgrade bash ┃ ⭑ unlink or uninstall conflicting homebrew packages ┃ ⭑ check for deprecated homebrew packages in dev.yml ┃ ⭑ install packages ┃ ⭑ link packages ┃ ⭑ upgrade packages ┃ ⭑ check for stale library links ┃ 𝒾 generate shadowenv for homebrew ┃ ✓ generate shadowenv for homebrew: done ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (0.02s) ━━ ┏━━ 👩💻 3/5 Ruby ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃ ⭑ Ruby OS version ┃ ⭑ install ruby 2.7.2 ┃ 𝒾 generate shadowenv for ruby ┃ ✓ generate shadowenv for ruby: done ┃ ⭑ upgrade rubygems ┃ ⭑ check .ruby-version ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (0.06s) ━━ ┏━━ 👩💻 4/5 Golang ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃ 𝒾 install go 1.14.3 ┃ 100% ┃ ✓ install go 1.14.3: done ┃ 𝒾 generate shadowenv for go ┃ ✓ generate shadowenv for go: done ┃ 𝒾 install golint ┃ ✓ install golint: done ┃ 𝒾 install errcheck ┃ ✓ install errcheck: done ┃ 𝒾 install or upgrade dep ┃ running brew update ┃ We need to install 1 package(s): dep ┃ INSTALL package: dep ┃┏━━ Running `brew install dep` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃┃ Warning: dep has been deprecated because it has an archived upstream repository! ┃┃ ┃┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (6.48s) ━━ ┃ ✓ install or upgrade dep: done ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (32.05s) ━━ ┏━━ 👩💻 5/5 Bundler ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃ 𝒾 install bundler ┃ Running gem install bundler -v 1.16.6 ┃ ✓ install bundler: done ┃ ⭑ ensure gemfile exists ┃ ⭑ update tokens in bundler config ┃ ⭑ bundle with 1.16.6 ┃ ⭑ assert foreman not present in gemfile ┃ ⭑ set local bundler configs ┃ ⭑ fix cache ┃ ⭑ prune gems with invalid native libraries ┃┏━━ Running `bundle install` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃┃ Installing cabin 0.9.0 ┃┃ Installing backports 3.17.2 ┃┃ Installing clamp 1.0.1 ┃┃ Installing ffi 1.13.1 with native extensions ┃┃ Installing json 1.8.6 with native extensions ┃┃ Installing insist 1.0.0 ┃┃ Installing mustache 0.99.8 ┃┃ Installing stud 0.0.23 ┃┃ Installing io-like 0.3.1 ┃┃ Installing hpricot 0.8.6 with native extensions ┃┃ Installing rdiscount 2.2.0.1 with native extensions ┃┃ Installing arr-pm 0.0.10 ┃┃ Installing pleaserun 0.0.31 ┃┃ Installing childprocess 0.9.0 ┃┃ Installing ruby-xz 0.2.3 ┃┃ Installing fpm 1.11.0 ┃┃ Gem::Ext::BuildError: ERROR: Failed to build gem native extension. ┃┃ current directory: /Users/plentz/.gem/ruby/2.7.2/gems/rdiscount-2.2.0.1/ext ┃┃ /opt/rubies/2.7.2/bin/ruby -I /opt/rubies/2.7.2/lib/ruby/2.7.0 -r ./siteconf20210117-58583-mrp5in.rb extconf.rb ┃┃ checking for random()... yes ┃┃ checking for srandom()... yes ┃┃ checking for rand()... yes ┃┃ checking for srand()... yes ┃┃ checking size of unsigned long... 8 ┃┃ checking size of unsigned int... 4 ┃┃ checking size of unsigned int... 4 ┃┃ checking size of unsigned short... 2 ┃┃ creating Makefile ┃┃ current directory: /Users/plentz/.gem/ruby/2.7.2/gems/rdiscount-2.2.0.1/ext ┃┃ make "DESTDIR=" clean ┃┃ current directory: /Users/plentz/.gem/ruby/2.7.2/gems/rdiscount-2.2.0.1/ext ┃┃ make "DESTDIR=" ┃┃ compiling Csio.c ┃┃ compiling amalloc.c ┃┃ amalloc.c:23:1: warning: function 'die' could be declared with attribute 'noreturn' [-Wmissing-noreturn] ┃┃ { ┃┃ ^ ┃┃ amalloc.c:39:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] ┃┃ if ( ret = calloc(count + sizeof(struct alist) + sizeof(int), size) ) { ┃┃ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ amalloc.c:39:14: note: place parentheses around the assignment to silence this warning ┃┃ if ( ret = calloc(count + sizeof(struct alist) + sizeof(int), size) ) { ┃┃ ^ ┃┃ ( ) ┃┃ amalloc.c:39:14: note: use '==' to turn this assignment into an equality comparison ┃┃ if ( ret = calloc(count + sizeof(struct alist) + sizeof(int), size) ) { ┃┃ ^ ┃┃ == ┃┃ amalloc.c:76:10: warning: passing 'const char [46]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ die("goddam: corrupted memory block %d in free()!\n", p2->index); ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ amalloc.c:22:11: note: passing argument to parameter 'msg' here ┃┃ die(char *msg, int index) ┃┃ ^ ┃┃ amalloc.c:95:10: warning: passing 'const char [49]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ die("goddam: corrupted memory block %d in realloc()!\n", p2->index); ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ amalloc.c:22:11: note: passing argument to parameter 'msg' here ┃┃ die(char *msg, int index) ┃┃ ^ ┃┃ 4 warnings generated. ┃┃ compiling basename.c ┃┃ compiling css.c ┃┃ css.c:81:28: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] ┃┃ written = (size > 0) ? fwrite(res,1,size,f) : 0; ┃┃ ~ ^~~~~~~~~~~~~~~~~~~~ ┃┃ 1 warning generated. ┃┃ compiling docheader.c ┃┃ compiling dumptree.c ┃┃ dumptree.c:23:29: warning: returning 'const char [11]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case WHITESPACE: return "whitespace"; ┃┃ ^~~~~~~~~~~~ ┃┃ dumptree.c:24:29: warning: returning 'const char [5]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case CODE : return "code"; ┃┃ ^~~~~~ ┃┃ dumptree.c:25:29: warning: returning 'const char [6]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case QUOTE : return "quote"; ┃┃ ^~~~~~~ ┃┃ dumptree.c:26:29: warning: returning 'const char [7]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case MARKUP : return "markup"; ┃┃ ^~~~~~~~ ┃┃ dumptree.c:27:29: warning: returning 'const char [5]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case HTML : return "html"; ┃┃ ^~~~~~ ┃┃ dumptree.c:28:29: warning: returning 'const char [3]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ cas ┃┃ e DL : return "dl"; ┃┃ ^~~~ ┃┃ dumptree.c:29:29: warning: returning 'const char [3]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case UL : return "ul"; ┃┃ ^~~~ ┃┃ dumptree.c:30:29: warning: returning 'const char [3]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case OL : return "ol"; ┃┃ ^~~~ ┃┃ dumptree.c:31:29: warning: returning 'const char [5]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case LISTITEM : return "item"; ┃┃ ^~~~~~ ┃┃ dumptree.c:32:29: warning: returning 'const char [7]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case HDR : return "header"; ┃┃ ^~~~~~~~ ┃┃ dumptree.c:33:29: warning: returning 'const char [3]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case HR : return "hr"; ┃┃ ^~~~ ┃┃ dumptree.c:34:29: warning: returning 'const char [6]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case TABLE : return "table"; ┃┃ ^~~~~~~ ┃┃ dumptree.c:35:29: warning: returning 'const char [7]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case SOURCE : return "source"; ┃┃ ^~~~~~~~ ┃┃ dumptree.c:36:29: warning: returning 'const char [6]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case STYLE : return "style"; ┃┃ ^~~~~~~ ┃┃ dumptree.c:37:29: warning: returning 'const char [14]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ default : return "mystery node!"; ┃┃ ^~~~~~~~~~~~~~~ ┃┃ dumptree.c:104:33: warning: initializing 'char *' with an expression of type 'const char [2]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static char *Begin[] = { 0, "P", "center" }; ┃┃ ^~~ ┃┃ dumptree.c:104:38: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static char *Begin[] = { 0, "P", "center" }; ┃┃ ^~~~~~~~ ┃┃ 17 warnings generated. ┃┃ compiling emmatch.c ┃┃ emmatch.c:113:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] ┃┃ case 2: if ( e = empair(f,first,last,match=2) ) ┃┃ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ emmatch.c:113:20: note: place parentheses around the assignment to silence this warning ┃┃ case 2: if ( e = empair(f,first,last,match=2) ) ┃┃ ^ ┃┃ ( ) ┃┃ emmatch.c:113:20: note: use '==' to turn this assignment into an equality comparison ┃┃ case 2: if ( e = empair(f,first,last,match=2) ) ┃┃ ^ ┃┃ == ┃┃ 1 warning generated. ┃┃ compiling flags.c ┃┃ flags.c:10:27: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NOLINKS, "!LINKS" }, ┃┃ ^~~~~~~~ ┃┃ flags.c:11:27: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NOIMAGE, "!IMAGE" }, ┃┃ ^~~~~~~~ ┃┃ flags.c:12:27: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NOPANTS, "!PANTS" }, ┃┃ ^~~~~~~~ ┃┃ flags.c:13:27: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NOHTML, "!HTML" }, ┃┃ ^~~~~~~ ┃┃ flags.c:14:27: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_STRICT, "STRICT" }, ┃┃ ^~~~~~~~ ┃┃ flags.c:15:27: warning: initializing 'char *' with an expression of type 'const char [8]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_TAGTEXT, "TAGTEXT" }, ┃┃ ^~~~~~~~~ ┃┃ flags.c:16:27: warning: initializing 'char *' with an expression of type 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NO_EXT, "!EXT" }, ┃┃ ^~~~~~ ┃┃ flags.c:17:27: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_CDATA, "CDATA" }, ┃┃ ^~~~~~~ ┃┃ flags.c:18:27: warning: initializing 'char *' with an expression of type 'const char [13]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NOSUPERSCRIPT, "!SUPERSCRIPT" }, ┃┃ ^~~~~~~~~~~~~~ ┃┃ flags.c:19:27: warning: initializing 'char *' with an expression of type 'const char [9]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NORELAXED, "!RELAXED" }, ┃┃ ^~~~~~~~~~ ┃┃ flags.c:20:27: warning: initializing 'char *' with an expression of type 'const char [8]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NOTABLES, "!TABLES" }, ┃┃ ^~~~~~~~~ ┃┃ flags.c:21:27: warning: initializing 'char *' with an expression of type 'const char [15]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NOSTRIKETHROUGH,"!STRIKETHROUGH" }, ┃┃ ^~~~~~~~~~~~~~~~ ┃┃ flags.c:22:27: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_TOC, "TOC" }, ┃┃ ^~~~~ ┃┃ flags.c:23:27: warning: initializing 'char *' with an expression of type 'const char [13]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_1_COMPAT, "MKD_1_COMPAT" }, ┃┃ ^~~~~~~~~~~~~~ ┃┃ flags.c:24:27: warning: initializing 'char *' with an expression of type 'const char [9]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_AUTOLINK, "AUTOLINK" }, ┃┃ ^~~~~~~~~~ ┃┃ flags.c:25:27: warning: initializing 'char *' with an expression of type 'const char [9]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_SAFELINK, "SAFELINK" }, ┃┃ ^~~~~~~~~~ ┃┃ flags.c:26:27: warning: initializing 'char *' with an expression of type 'const char [8]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NOHEADER, "!HEADER" }, ┃┃ ^~~~~~~~~ ┃┃ flags.c:27:27: warning: initializing 'char *' with an expression of type 'const char [8]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_TABSTOP, "TABSTOP" }, ┃┃ ^~~~~~~~~ ┃┃ flags.c:28:27: warning: initializing 'char *' with an expression of type 'const char [10]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NODIVQUOTE, "!DIVQUOTE" }, ┃┃ ^~~~~~~~~~~ ┃┃ flags.c:29:27: warning: initializing 'char *' with an expression of type 'const char [11]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NOALPHALIST, "!ALPHALIST" }, ┃┃ ^~~~~~~~~~~~ ┃┃ flags.c:30:27: warning: init ┃┃ ializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NODLIST, "!DLIST" }, ┃┃ ^~~~~~~~ ┃┃ flags.c:31:27: warning: initializing 'char *' with an expression of type 'const char [9]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_EXTRA_FOOTNOTE, "FOOTNOTE" }, ┃┃ ^~~~~~~~~~ ┃┃ flags.c:32:27: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NOSTYLE, "!STYLE" }, ┃┃ ^~~~~~~~ ┃┃ flags.c:33:27: warning: initializing 'char *' with an expression of type 'const char [12]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_NODLDISCOUNT, "!DLDISCOUNT" }, ┃┃ ^~~~~~~~~~~~~ ┃┃ flags.c:34:27: warning: initializing 'char *' with an expression of type 'const char [8]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_DLEXTRA, "DLEXTRA" }, ┃┃ ^~~~~~~~~ ┃┃ flags.c:35:27: warning: initializing 'char *' with an expression of type 'const char [11]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_FENCEDCODE, "FENCEDCODE" }, ┃┃ ^~~~~~~~~~~~ ┃┃ flags.c:36:27: warning: initializing 'char *' with an expression of type 'const char [9]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_IDANCHOR, "IDANCHOR" }, ┃┃ ^~~~~~~~~~ ┃┃ flags.c:37:27: warning: initializing 'char *' with an expression of type 'const char [11]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_GITHUBTAGS, "GITHUBTAGS" }, ┃┃ ^~~~~~~~~~~~ ┃┃ flags.c:38:29: warning: initializing 'char *' with an expression of type 'const char [17]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { MKD_URLENCODEDANCHOR, "URLENCODEDANCHOR" }, ┃┃ ^~~~~~~~~~~~~~~~~~ ┃┃ flags.c:55:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] ┃┃ if ( not = (*name == '!') ) { ┃┃ ~~~~^~~~~~~~~~~~~~~~ ┃┃ flags.c:55:11: note: place parentheses around the assignment to silence this warning ┃┃ if ( not = (*name == '!') ) { ┃┃ ^ ┃┃ ( ) ┃┃ flags.c:55:11: note: use '==' to turn this assignment into an equality comparison ┃┃ if ( not = (*name == '!') ) { ┃┃ ^ ┃┃ == ┃┃ flags.c:52:17: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] ┃┃ for (i=0; i < NR(flagnames); i++) { ┃┃ ~ ^ ~~~~~~~~~~~~~ ┃┃ 31 warnings generated. ┃┃ compiling generate.c ┃┃ generate.c:268:14: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("&", f); ┃┃ ^~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:270:14: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("<", f); ┃┃ ^~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:272:14: warning: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("%22", f); ┃┃ ^~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:276:14: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring(" ", f); ┃┃ ^~~~ ┃┃ generate.c:149:15: note: passing argument ┃┃ to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:278:17: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, "%%%02X", c); ┃┃ ^~~~~~~~ ┃┃ generate.c:169:25: note: passing argument to parameter 'fmt' here ┃┃ Qprintf(MMIOT *f, char *fmt, ...) ┃┃ ^ ┃┃ generate.c:351:28: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] ┃┃ S(ref->title) = (e-title)-2; ┃┃ ~ ~~~~~~~~~^~ ┃┃ generate.c:498:17: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ _aprotocol( "https:" ), ┃┃ ^~~~~~~~ ┃┃ generate.c:497:25: note: expanded from macro '_aprotocol' ┃┃ #define _aprotocol(x) { x, (sizeof x)-1 } ┃┃ ^ ┃┃ generate.c:499:17: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ _aprotocol( "http:" ), ┃┃ ^~~~~~~ ┃┃ generate.c:497:25: note: expanded from macro '_aprotocol' ┃┃ #define _aprotocol(x) { x, (sizeof x)-1 } ┃┃ ^ ┃┃ generate.c:500:17: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ _aprotocol( "news:" ), ┃┃ ^~~~~~~ ┃┃ generate.c:497:25: note: expanded from macro '_aprotocol' ┃┃ #define _aprotocol(x) { x, (sizeof x)-1 } ┃┃ ^ ┃┃ generate.c:501:17: warning: initializing 'char *' with an expression of type 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ _aprotocol( "ftp:" ), ┃┃ ^~~~~~ ┃┃ generate.c:497:25: note: expanded from macro '_aprotocol' ┃┃ #define _aprotocol(x) { x, (sizeof x)-1 } ┃┃ ^ ┃┃ generate.c:513:29: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] ┃┃ for (i=0, p=protocol; i < NRPROTOCOLS; i++, p++) ┃┃ ~ ^ ~~~~~~~~~~~ ┃┃ generate.c:537:35: warning: initializing 'char *' with an expression of type 'const char [11]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static linkytype imaget = { 0, 0, "", f); ┃┃ ^~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:870:13: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("", f); ┃┃ ^~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:885:13: warning: passing ┃┃ 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("", f); ┃┃ ^~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:887:13: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("
", f); ┃┃ ^~~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:964:10: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("", f); ┃┃ ^~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:972:10: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("", f); ┃┃ ^~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:979:10: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("", f); ┃┃ ^~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1087:17: warning: passing 'const char [9]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, "&r%cquo;", typeofquote); ┃┃ ^~~~~~~~~~ ┃┃ generate.c:169:25: note: passing argument to parameter 'fmt' here ┃┃ Qprintf(MMIOT *f, char *fmt, ...) ┃┃ ^ ┃┃ generate.c:1093:13: warning: passing 'const char [9]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, "&l%cquo;", typeofquote); ┃┃ ^~~~~~~~~~ ┃┃ generate.c:169:25: note: passing argument to parameter 'fmt' here ┃┃ Qprintf(MMIOT *f, char *fmt, ...) ┃┃ ^ ┃┃ generate.c:1113:18: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] ┃┃ if ( !(len = strlen(s)) ) ┃┃ ~ ^~~~~~~~~ ┃┃ generate.c:1135:13: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'s|", "rsquo", 0 }, ┃┃ ^~~~~ ┃┃ generate.c:1135:25: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'s|", "rsquo", 0 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1136:13: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'t|", "rsquo", 0 }, ┃┃ ^~~~~ ┃┃ generate.c:1136:25: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'t|", "rsquo", 0 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1137:13: warning: initializing 'char *' with an expression of type 'const char [5]' discards ┃┃ qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'re|", "rsquo", 0 }, ┃┃ ^~~~~~ ┃┃ generate.c:1137:25: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'re|", "rsquo", 0 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1138:13: warning: initializing 'char *' with an expression of type 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'ll|", "rsquo", 0 }, ┃┃ ^~~~~~ ┃┃ generate.c:1138:25: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'ll|", "rsquo", 0 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1139:13: warning: initializing 'char *' with an expression of type 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'ve|", "rsquo", 0 }, ┃┃ ^~~~~~ ┃┃ generate.c:1139:25: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'ve|", "rsquo", 0 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1140:13: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'m|", "rsquo", 0 }, ┃┃ ^~~~~ ┃┃ generate.c:1140:25: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'m|", "rsquo", 0 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1141:13: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'d|", "rsquo", 0 }, ┃┃ ^~~~~ ┃┃ generate.c:1141:25: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '\'', "'d|", "rsquo", 0 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1142:13: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '-', "---", "mdash", 2 }, ┃┃ ^~~~~ ┃┃ generate.c:1142:25: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '-', "---", "mdash", 2 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1143:13: warning: initializing 'char *' with an expression of type 'const char [3]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '-', "--", "ndash", 1 }, ┃┃ ^~~~ ┃┃ generate.c:1143:25: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '-', "--", "ndash", 1 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1144:13: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '.', "...", "hellip", 2 }, ┃┃ ^~~~~ ┃┃ generate.c:1144:25: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '.', "...", "hellip", 2 }, ┃┃ ^~~~~~~~ ┃┃ generate.c:1145:13: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '.', ". . .", "hellip", 4 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1145:25: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '.', ". . .", "hellip", 4 }, ┃┃ ^~~~~~~~ ┃┃ generate.c:1146:13: warning: initializing 'char *' wi ┃┃ th an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '(', "(c)", "copy", 2 }, ┃┃ ^~~~~ ┃┃ generate.c:1146:25: warning: initializing 'char *' with an expression of type 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '(', "(c)", "copy", 2 }, ┃┃ ^~~~~~ ┃┃ generate.c:1147:13: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '(', "(r)", "reg", 2 }, ┃┃ ^~~~~ ┃┃ generate.c:1147:25: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '(', "(r)", "reg", 2 }, ┃┃ ^~~~~ ┃┃ generate.c:1148:13: warning: initializing 'char *' with an expression of type 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '(', "(tm)", "trade", 3 }, ┃┃ ^~~~~~ ┃┃ generate.c:1148:25: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '(', "(tm)", "trade", 3 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1149:13: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '3', "|3/4|", "frac34", 2 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1149:25: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '3', "|3/4|", "frac34", 2 }, ┃┃ ^~~~~~~~ ┃┃ generate.c:1150:13: warning: initializing 'char *' with an expression of type 'const char [9]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '3', "|3/4ths|", "frac34", 2 }, ┃┃ ^~~~~~~~~~ ┃┃ generate.c:1150:25: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '3', "|3/4ths|", "frac34", 2 }, ┃┃ ^~~~~~~~ ┃┃ generate.c:1151:13: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '1', "|1/2|", "frac12", 2 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1151:25: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '1', "|1/2|", "frac12", 2 }, ┃┃ ^~~~~~~~ ┃┃ generate.c:1152:13: warning: initializing 'char *' with an expression of type 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '1', "|1/4|", "frac14", 2 }, ┃┃ ^~~~~~~ ┃┃ generate.c:1152:25: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '1', "|1/4|", "frac14", 2 }, ┃┃ ^~~~~~~~ ┃┃ generate.c:1153:13: warning: initializing 'char *' with an expression of type 'const char [8]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '1', "|1/4th|", "frac14", 2 }, ┃┃ ^~~~~~~~~ ┃┃ generate.c:1153:25: warning: initializing 'char *' with an expression of type 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '1', "|1/4th|", "frac14", 2 }, ┃┃ ^~~~~~~~ ┃┃ generate.c:1154:13: warning: initializing 'char *' with an expression of type 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ { '&', "", 0, 3 }, ┃┃ ^~~~~~ ┃┃ generate.c:1172:14: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, "&%s;", smarties[i].entity); ┃┃ ^~~~~~ ┃┃ generate.c:169:25: note: passing argument to parameter 'fmt' here ┃┃ Qprintf(MMIOT *f, char *fmt, ...) ┃┃ ^ ┃┃ generate.c:1194:16: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("“", f); ┃┃ ^~~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1196:16: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("”", f); ┃┃ ^~~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1169:18: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] ┃┃ for ( i=0; i < NRSMART; i++) ┃┃ ~ ^ ~~~~~~~ ┃┃ generate.c:1285:15: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring(tag_text(f) ? " " : "", f); ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ generate.c:1260:21: note: expanded from macro 'tag_text' ┃┃ #define tag_text(f) (f->flags & MKD_TAGTEXT) ┃┃ ^ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1289:12: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring(">", f); ┃┃ ^~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1295:12: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring(""", f); ┃┃ ^~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1303:16: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("![", f); ┃┃ ^~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1341:12: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("",f); ┃┃ ^~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1342:35: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ ___mkd_reparse(sup, len, 0, f, "()"); ┃┃ ^~~~ ┃┃ generate.c:200:64: note: passing argument to parameter 'esc' here ┃┃ ___mkd_reparse(char *bfr, int size, int flags, MMIOT *f, char *esc) ┃┃ ^ ┃┃ generate.c:1343:12: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("", f); ┃┃ ^~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1380:27: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ case '&': Qstring("&", f); ┃┃ ^~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char * ┃┃ s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1384:17: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("<", f); ┃┃ ^~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1432:12: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("<", f); ┃┃ ^~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1440:12: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("&", f); ┃┃ ^~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1470:13: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, "
", "
" }; ┃┃ ^~ ┃┃ generate.c:1618:34: warning: initializing 'char *' with an expression of type 'const char [4]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static char *Begin[] = { "", "
", "
" }; ┃┃ ^~~~~ ┃┃ generate.c:1618:41: warning: initializing 'char *' with an expression of type 'const char [31]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static char *Begin[] = { "", "
", "
" }; ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ generate.c:1619:30: warning: initializing 'char *' with an expression of type 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static char *End[] = { "", "
","" }; ┃┃ ^~ ┃┃ generate.c:1619:34: warning: initializing 'char *' with an expression of type 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static char *End[] = { "", "","" }; ┃┃ ^~~~~~ ┃┃ generate.c:1619:41: warning: initializing 'char *' with an expression of type 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ static char *End[] = { "", "","" }; ┃┃ ^~~~~~ ┃┃ generate.c:1651:13: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring(" ", f); ┃┃ ^~~~~~~~~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMI ┃┃ OT *f) ┃┃ ^ ┃┃ generate.c:1696:13: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, arguments ? "<%s %s>" : "<%s>", block, arguments); ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ generate.c:169:25: note: passing argument to parameter 'fmt' here ┃┃ Qprintf(MMIOT *f, char *fmt, ...) ┃┃ ^ ┃┃ generate.c:1701:10: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("\n\n", f); ┃┃ ^~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1705:14: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, "%s>", block); ┃┃ ^~~~~~~ ┃┃ generate.c:169:25: note: passing argument to parameter 'fmt' here ┃┃ Qprintf(MMIOT *f, char *fmt, ...) ┃┃ ^ ┃┃ generate.c:1716:10: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("\n", f); ┃┃ ^~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1720:11: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("- ", f);
┃┃ ^~~~~~
┃┃ generate.c:149:15: note: passing argument to parameter 's' here
┃┃ Qstring(char *s, MMIOT *f)
┃┃ ^
┃┃ generate.c:1722:11: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
┃┃ Qstring("
\n", f);
┃┃ ^~~~~~~~~
┃┃ generate.c:149:15: note: passing argument to parameter 's' here
┃┃ Qstring(char *s, MMIOT *f)
┃┃ ^
┃┃ generate.c:1725:23: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
┃┃ htmlify(p->down, "dd", p->ident, f);
┃┃ ^~~~
┃┃ generate.c:1692:29: note: passing argument to parameter 'block' here
┃┃ htmlify(Paragraph *p, char *block, char *arguments, MMIOT *f)
┃┃ ^
┃┃ generate.c:1729:10: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
┃┃ Qstring("
", f); ┃┃ ^~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1738:13: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, "<%cl", (typ==UL)?'u':'o'); ┃┃ ^~~~~~ ┃┃ generate.c:169:25: note: passing argument to parameter 'fmt' here ┃┃ Qprintf(MMIOT *f, char *fmt, ...) ┃┃ ^ ┃┃ generate.c:1740:17: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, " type=\"a\""); ┃┃ ^~~~~~~~~~~~~ ┃┃ generate.c:169:25: note: passing argument to parameter 'fmt' here ┃┃ Qprintf(MMIOT *f, char *fmt, ...) ┃┃ ^ ┃┃ generate.c:1741:13: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, ">\n"); ┃┃ ^~~~~ ┃┃ generate.c:169:25: note: passing argument to parameter 'fmt' here ┃┃ Qprintf(MMIOT *f, char *fmt, ...) ┃┃ ^ ┃┃ generate.c:1744:23: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ htmlify(p->down, "li", p->ident, f); ┃┃ ^~~~ ┃┃ generate.c:1692:29: note: passing arg ┃┃ ument to parameter 'block' here ┃┃ htmlify(Paragraph *p, char *block, char *arguments, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1748:13: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qprintf(f, "%cl>\n", (typ==UL)?'u':'o'); ┃┃ ^~~~~~~~~~ ┃┃ generate.c:169:25: note: passing argument to parameter 'fmt' here ┃┃ Qprintf(MMIOT *f, char *fmt, ...) ┃┃ ^ ┃┃ generate.c:1774:19: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ htmlify(p->down, p->ident ? "div" : "blockquote", p->ident, f); ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ generate.c:1692:29: note: passing argument to parameter 'block' here ┃┃ htmlify(Paragraph *p, char *block, char *arguments, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1788:10: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Qstring("", f); ┃┃ ^~~~~~~~ ┃┃ generate.c:149:15: note: passing argument to parameter 's' here ┃┃ Qstring(char *s, MMIOT *f) ┃┃ ^ ┃┃ generate.c:1822:23: warning: passing 'const char [37]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Csprintf(&m->out, "\n
\n
\n"); ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ ./cstring.h:73:38: note: passing argument to parameter here ┃┃ extern int Csprintf(Cstring *, char *, ...); ┃┃ ^ ┃┃ generate.c:1828:21: warning: passing 'const char [20]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Csprintf(&m->out, "- \n
\n");
┃┃ ^~~~~~~~~~~~~
┃┃ ./cstring.h:73:38: note: passing argument to parameter here
┃┃ extern int Csprintf(Cstring *, char *, ...);
┃┃ ^
┃┃ generate.c:1837:23: warning: passing 'const char [14]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
┃┃ Csprintf(&m->out, "
\n", ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ ./cstring.h:73:38: note: passing argument to parameter here ┃┃ extern int Csprintf(Cstring *, char *, ...); ┃┃ ^ ┃┃ generate.c:1831:21: warning: passing 'const char [47]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Csprintf(&m->out, "↩", ┃┃ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ┃┃ ./cstring.h:73:38: note: passing argument to parameter here ┃┃ extern int Csprintf(Cstring *, char *, ...); ┃┃ ^ ┃┃ generate.c:1833:21: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ┃┃ Csprintf(&m->out, "
It successfully installs after this changes.