From 179af14e3b80109d42288b9a6163901ccfbf39c8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 10 Nov 2014 23:25:31 -0800 Subject: html_unescape: Made find_entity static --- src/CMakeLists.txt | 2 +- src/html/html_unescape.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 401ff08..c0792cd 100644 --- 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 index 5d12662..9fd7969 100644 --- 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; -- cgit v1.2.3