Skip to content
This repository was archived by the owner on Sep 23, 2018. It is now read-only.
This repository was archived by the owner on Sep 23, 2018. It is now read-only.

Fix typecasting warnings #68

@Sharpie

Description

@Sharpie

These have been around for ever and should be cleaned up:

tikzDevice.c:286:10: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  strcpy(tikzInfo->documentDeclaration, documentDeclaration);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_string.h:88:30: note: expanded from macro 'strcpy'
   ? __builtin___strcpy_chk (dest, src, __darwin_obsz (dest))           \

tikzDevice.c:580:8: warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types]
  free(tikzInfo->packages);
       ^~~~~~~~~~~~~~~~~~
/usr/include/stdlib.h:160:18: note: passing argument to parameter here
void     free(void *);

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions