PREV INDEX NEXT

Author: Unknown
Subject: typedef of Deque
Date: Tuesday, 31 Mar 2020, 15:36:39

I'm getting the following error when I make Qsort

Deque.c:44:23: warning: redefinition of typedef `Deque' [-Wpedantic]
   44 | typedef struct deque *Deque;
      |                       ^~~~~
In file included from Deque.c:9:
/c/cs223/Hwk4/Deque.h:19:23: note: previous declaration of `Deque' was here
   19 | typedef struct deque *Deque;
      |                       ^~~~~

I think this is because I typedef Deque in my Deque.c, even though it's already declared in /c/cs223/Hwk4/Deque.h. Should I include it? If I don't, my code doesn't work.
PREV INDEX NEXT