- Commit
- 179af14e3b80109d42288b9a6163901ccfbf39c8
- Parent
- 45c5b02b3a28feaa7cf5fa26189c72064c2c8edf
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
html_unescape: Made find_entity static
My personal build of CMark ✏️
html_unescape: Made find_entity static
2 files changed, 2 insertions, 2 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/CMakeLists.txt | 2 | 1 | 1 |
Modified | src/html/html_unescape.h | 2 | 1 | 1 |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -89,6 +89,6 @@ if(MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4") endif() elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=c99") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=c99 -pedantic") endif()
diff --git a/src/html/html_unescape.h b/src/html/html_unescape.h @@ -129,7 +129,7 @@ __inline __attribute__ ((__gnu_inline__)) #endif #endif -const struct html_ent * +static const struct html_ent * find_entity (str, len) register const char *str; register unsigned int len;