Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/create.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 4 additions & 0 deletions src/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down
2 changes: 2 additions & 0 deletions src/make.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/remove.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down