chase-lev-dequeue: fix compiler warning
authorBrian Norris <banorris@uci.edu>
Tue, 28 May 2013 17:47:32 +0000 (10:47 -0700)
committerBrian Norris <banorris@uci.edu>
Tue, 28 May 2013 17:47:32 +0000 (10:47 -0700)
Fix this warning, found when compiling with GCC's C1x support:

  main.c: In function ‘task’:
  main.c:17:2: warning: implicit declaration of function ‘steal’ [-Wimplicit-function-declaration]

chase-lev-deque/deque.h

index bc670e7..91f4ab0 100644 (file)
@@ -13,6 +13,7 @@ typedef struct {
 
 Deque * create();
 int take(Deque *q);
+int steal(Deque *q);
 void resize(Deque *q);
 void push(Deque *q, int x);