Do not export internal unsafe_encode_char()#55
Do not export internal unsafe_encode_char()#55stevengj merged 2 commits intoJuliaStrings:masterfrom petercolberg:master
Conversation
|
Strange, the tests with |
|
I added the compiler flag |
|
Yes, we've had some persistent problems with the |
|
The appveyor test seems to have bitrotted as well, grrr.... |
Do not export internal unsafe_encode_char()
|
Just to make sure that my change does not introduce a silent regression to the tests: Was there any particular reason why the tests were using |
| PICFLAG = -fPIC | ||
| C99FLAG = -std=c99 | ||
| UCFLAGS = $(CFLAGS) $(PICFLAG) $(C99FLAG) -DUTF8PROC_EXPORTS | ||
| WCFLAGS = -Wall -Wmissing-prototypes -pedantic |
There was a problem hiding this comment.
Is -Wmissing-prototypes not included in -Wall? If it isn't, why not? MSVC understands -Wall but not -Wmissing-prototypes, and currently my hacky method of building Julia with MSVC goes through makefiles rather than cmake for some deps.
There was a problem hiding this comment.
If it causes problems with MSVC, I would just omit this warning.
There was a problem hiding this comment.
Better suggestion: move -Wmissing-prototypes to CFLAGS in .travis.yml.
The flag serves a purpose, to warn when internal functions are accidentally exported.
There was a problem hiding this comment.
I like that plan, as long as people will skim the travis logs once in a while
There was a problem hiding this comment.
See .travis.yml, the flag -Werror ensures that Travis will fail on warnings.
The 2.0 release and subsequent #77 proved that warnings will be ignored with certainty unless fatal. 😉
This commit removes a spurious external symbol for the internal function
unsafe_encode_char(), which I noticed while preparing a package of the utf8proc library for Debian.