diff --git a/src/create.c b/src/create.c index 40d1c83..25af9d6 100644 --- a/src/create.c +++ b/src/create.c @@ -36,6 +36,9 @@ int f_create_binary_from_source(const char* src_path, const char* bin_path, cons { struct package pkg; + (void)in_format; + (void)out_format; + // Open the package source open_pkg(src_path, &pkg, NULL); diff --git a/src/install.c b/src/install.c index 9cf90d5..2d42f46 100755 --- a/src/install.c +++ b/src/install.c @@ -43,6 +43,8 @@ int install_package_source(const char* spm_path, int as_dep) { int f_install_package_source(const char* spm_path, int as_dep, char* repo) { // Check if spm_path is NULL + (void)as_dep; + if (spm_path == NULL) { msg(ERROR, "spm_path is NULL"); return -1; @@ -314,6 +316,8 @@ int install_package_binary(const char* archivePath, int as_dep, const char* repo struct package pkg; + (void)as_dep; + // Get required environment variables char* default_format = getenv("SOVIET_DEFAULT_FORMAT"); char* build_dir = getenv("SOVIET_BUILD_DIR"); diff --git a/src/make.c b/src/make.c index 13fb3d5..668cb0b 100755 --- a/src/make.c +++ b/src/make.c @@ -215,6 +215,8 @@ int make(char* package_dir, struct package* pkg) { */ int exec_special(const char* cmd, const char* package_dir) { dbg(2, "Executing special command: %s", cmd); + + (void)package_dir; if (system(cmd) != 0) { return 1; diff --git a/src/remove.c b/src/remove.c index f62e03a..78e3df4 100644 --- a/src/remove.c +++ b/src/remove.c @@ -23,6 +23,10 @@ This function is used as a callback by the nftw function to unlink (remove) file */ int unlink_cb(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) { + (void)sb; + (void)typeflag; + (void)ftwbuf; + int rv = remove(fpath); if (rv)