Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence GCC 11 warnings #468

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on May 8, 2021

  1. Silence GCC 11 warnings

    ```
    compiling ../../../../ext/json/generator/generator.c
    In file included from ../../../../ext/json/generator/generator.c:1:
    In function 'freverse',
        inlined from 'fltoa' at ../../../../ext/json/generator/../fbuffer/fbuffer.h:158:5,
        inlined from 'fbuffer_append_long' at ../../../../ext/json/generator/../fbuffer/fbuffer.h:165:25,
        inlined from 'generate_json_fixnum' at ../../../../ext/json/generator/generator.c:974:5,
        inlined from 'generate_json_integer' at ../../../../ext/json/generator/generator.c:987:9,
        inlined from 'mInteger_to_json' at ../../../../ext/json/generator/generator.c:439:5:
    ../../../../ext/json/generator/../fbuffer/fbuffer.h:145:45: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
      145 |         c = *end, *end-- = *start, *start++ = c;
          |                                    ~~~~~~~~~^~~
    ../../../../ext/json/generator/generator.c: In function 'mInteger_to_json':
    ../../../../ext/json/generator/../fbuffer/fbuffer.h:164:10: note: at offset 20 into destination object 'buf' of size 20
      164 |     char buf[20];
          |          ^~~
    ```
    xtkoba committed May 8, 2021
    Configuration menu
    Copy the full SHA
    02ce0c3 View commit details
    Browse the repository at this point in the history