diff options
author | Kevin Wojniak <kainjow@kainjow.com> | 2015-08-10 10:07:54 -0700 |
---|---|---|
committer | Kevin Wojniak <kainjow@kainjow.com> | 2015-08-10 10:07:54 -0700 |
commit | 6c51eb5a98521cc2f94dd0139a17f72e025ecfe8 (patch) | |
tree | 0d78a5c30e44d5f8bc365aa592dfeeb0fa51aabf /src | |
parent | 722bc5df7e7bde6ec865b991e500aca04c931ad5 (diff) |
Remove need to disable MSVC warning 4244
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/node.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0f04351..30d018f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -155,7 +155,7 @@ if(MSVC) else() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4") endif() - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4127 /wd4267 /wd4706 /D_CRT_SECURE_NO_WARNINGS") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4267 /wd4706 /D_CRT_SECURE_NO_WARNINGS") elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c99 -pedantic") endif() @@ -717,7 +717,7 @@ int cmark_node_check(cmark_node *node, FILE *out) { } cur = node; - while (true) { + for (;;) { if (cur->first_child) { if (cur->first_child->prev != NULL) { S_print_error(out, cur->first_child, "prev"); |