"Fossies" - the Fresh Open Source Software Archive

Member "qt-everywhere-src-6.3.1/qtbase/src/3rdparty/md4c/0001-md4c-Fix-MSVC-compiler-level-3-warnings.patch" (25 May 2022, 1993 Bytes) of package /linux/misc/qt-everywhere-src-6.3.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 diff --git a/src/3rdparty/md4c/md4c.c b/src/3rdparty/md4c/md4c.c
    2 index 6aeef112e5..9d0d1b7d7b 100644
    3 --- a/src/3rdparty/md4c/md4c.c
    4 +++ b/src/3rdparty/md4c/md4c.c
    5 @@ -916,7 +916,7 @@ md_merge_lines(MD_CTX* ctx, OFF beg, OFF end, const MD_LINE* lines, int n_lines,
    6          }
    7  
    8          if(off >= end) {
    9 -            *p_size = ptr - buffer;
   10 +            *p_size = (MD_SIZE)(ptr - buffer);
   11              return;
   12          }
   13  
   14 @@ -2229,7 +2229,7 @@ md_is_link_reference(MD_CTX* ctx, const MD_LINE* lines, int n_lines,
   15  
   16      if(beg_line != end_line) {
   17          MD_CHECK(md_merge_lines_alloc(ctx, beg, end, beg_line,
   18 -                 n_lines - (beg_line - lines), _T(' '), &label, &label_size));
   19 +                 (int)(n_lines - (beg_line - lines)), _T(' '), &label, &label_size));
   20      } else {
   21          label = (CHAR*) STR(beg);
   22          label_size = end - beg;
   23 @@ -4265,7 +4265,7 @@ md_process_inlines(MD_CTX* ctx, const MD_LINE* lines, int n_lines)
   24                      MD_CHECK(md_enter_leave_span_a(ctx, (mark->ch != ']'),
   25                                  (opener->ch == '!' ? MD_SPAN_IMG : MD_SPAN_A),
   26                                  STR(dest_mark->beg), dest_mark->end - dest_mark->beg, FALSE,
   27 -                                md_mark_get_ptr(ctx, title_mark - ctx->marks), title_mark->prev));
   28 +                                md_mark_get_ptr(ctx, (int)(title_mark - ctx->marks)), title_mark->prev));
   29  
   30                      /* link/image closer may span multiple lines. */
   31                      if(mark->ch == ']') {
   32 @@ -4908,7 +4908,7 @@ md_push_block_bytes(MD_CTX* ctx, int n_bytes)
   33  
   34          /* Fix the ->current_block after the reallocation. */
   35          if(ctx->current_block != NULL) {
   36 -            OFF off_current_block = (char*) ctx->current_block - (char*) ctx->block_bytes;
   37 +            OFF off_current_block = (OFF)((char*) ctx->current_block - (char*) ctx->block_bytes);
   38              ctx->current_block = (MD_BLOCK*) ((char*) new_block_bytes + off_current_block);
   39          }
   40