Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

compiler warning in fullfiles.c #90

Open
phmccarty opened this issue Oct 17, 2017 · 0 comments
Open

compiler warning in fullfiles.c #90

phmccarty opened this issue Oct 17, 2017 · 0 comments

Comments

@phmccarty
Copy link
Contributor

In file included from src/fullfiles.c:38:0:
src/fullfiles.c: In function ‘create_fullfile’:
src/fullfiles.c:102:81: warning: passing argument 5 of ‘__log_message’ makes pointer from integer without a cast [-Wint-conversion]
    LOG(NULL, "Tar command for copying directory full file failed with code %d", tarcmdresult);
                                                                                 ^
./include/swupd.h:249:77: note: in definition of macro ‘LOG’
 #define LOG(file, msg, fmt...) __log_message(file, msg, __FILE__, __LINE__, fmt)
                                                                             ^~~
./include/swupd.h:248:13: note: expected ‘const char *’ but argument is of type ‘int’
 extern void __log_message(struct file *file, char *msg, char *filename, int linenr, const char *fmt, ...);
             ^~~~~~~~~~~~~
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant