Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://github.com/danielpinto8zz6/c-cpp-project-generator#readme

CC = gcc
CFLAGS := -Wall -Wextra -g -Werror=missing-declarations -Werror=redundant-decls
CFLAGS := -std=c11 -Wall -Wextra -g -Werror=missing-declarations -Werror=redundant-decls -D_DEFAULT_SOURCE -pedantic-errors
LFLAGS = -lncurses
# OUTPUT := output
SRC := src
Expand Down
6 changes: 3 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
static void process_prompt(operation**, char*);
static void get_input(char*);
static void apply_operations(numberstack*, operation**);
static void exit_pcalc_success();
static void exit_pcalc_success(int);



Expand Down Expand Up @@ -135,7 +135,7 @@ int main(int argc, char* argv[])
}


init_gui(&displaywin, &inputwin);
init_gui();

// Set handler for CTRL+C to clean exit
signal(SIGINT, exit_pcalc_success);
Expand Down Expand Up @@ -633,7 +633,7 @@ void exit_pcalc(int code) {
exit(code);
}

static void exit_pcalc_success() {
static void exit_pcalc_success(int d __attribute__((unused))) {

exit_pcalc(0);
}