]> granicus.if.org Git - esp-idf/commit
ipc: fix errors for GCC 8 support
authorAnton Maklakov <anton@espressif.com>
Thu, 24 May 2018 11:09:23 +0000 (19:09 +0800)
committerbot <bot@espressif.com>
Mon, 2 Jul 2018 09:05:00 +0000 (09:05 +0000)
commit2a810a318fd1cf2e5768dfe4baf8dbe368be3fd7
tree22d340b04e1e54ff3a0bb51e2fab2f3815bbffaa
parent93f6700be744091498ed7000f2580903fd04f100
ipc: fix errors for GCC 8 support

components/esp32/ipc.c: In function 'esp_ipc_init':
components/esp32/ipc.c:82:31: error: '%d' directive writing between 1 and 11 bytes into a region of size 5 [-Werror=format-overflow=]
         sprintf(task_name,"ipc%d",i);
                               ^~
components/esp32/ipc.c:82:27: note: directive argument in the range [-2147483648, 1]
         sprintf(task_name,"ipc%d",i);
                           ^~~~~~~
components/esp32/ipc.c:82:9: note: 'sprintf' output between 5 and 15 bytes into a destination of size 8
         sprintf(task_name,"ipc%d",i);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
components/esp32/ipc.c