LibreDWG / libredwg

Official mirror of libredwg. With CI hooks and nightly releases. PR's ok
https://savannah.gnu.org/projects/libredwg/
GNU General Public License v3.0
992 stars 235 forks source link

compcert compat #858

Open rurban opened 1 year ago

rurban commented 1 year ago

get it from https://github.com/AbsInt/CompCert use it like: ../configure CC="ccomp -std=c11 -fstruct-passing -flongdouble" --disable-bindings --disable-werror

-Werror,-Wc11-extensions: anonymous structs/unions are a C11 extension include/dwg.h:9640 We really should stay c99 compatible

error: use of undeclared identifier __FUNCTION__

dwg_api.h:32: warning: "__attribute_deprecated__" redefined

dwg.h:8071: warning: unknown pragma ignored [-Wunknown-pragmas]

/common.c:502: error: unsupported feature: function parameter of struct or union type (consider adding option [-fstruct-passing])

rurban commented 1 year ago

TODO: I need a proper editor with multi-line regex search-replace. emacs does not. multiedit pro could do that in ancient times