Skip to content

Commit 153272c

Browse files
DevManu-deajccosta
authored andcommitted
compilation fixes
Fixed compiling and added tinfo link Removed tinfo link Reduced compiler version
1 parent 2787c7d commit 153272c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# https://github.com/danielpinto8zz6/c-cpp-project-generator#readme
22

33
CC = gcc
4-
CFLAGS := -Wall -Wextra -g -Werror=missing-declarations -Werror=redundant-decls
4+
CFLAGS := -std=c11 -Wall -Wextra -g -Werror=missing-declarations -Werror=redundant-decls -D_DEFAULT_SOURCE -pedantic-errors
55
LFLAGS = -lncurses
66
# OUTPUT := output
77
SRC := src

src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
static void process_prompt(operation**, char*);
3131
static void get_input(char*);
3232
static void apply_operations(numberstack*, operation**);
33-
static void exit_pcalc_success();
33+
static void exit_pcalc_success(int);
3434

3535

3636

@@ -135,7 +135,7 @@ int main(int argc, char* argv[])
135135
}
136136

137137

138-
init_gui(&displaywin, &inputwin);
138+
init_gui();
139139

140140
// Set handler for CTRL+C to clean exit
141141
signal(SIGINT, exit_pcalc_success);
@@ -633,7 +633,7 @@ void exit_pcalc(int code) {
633633
exit(code);
634634
}
635635

636-
static void exit_pcalc_success() {
636+
static void exit_pcalc_success(int d __attribute__((unused))) {
637637

638638
exit_pcalc(0);
639639
}

0 commit comments

Comments
 (0)