title: GCC C compile error, void value not ignored as it ought to be
body: <p>I'm having trouble compiling some C code.
  When I compile, I'l get this error:  </p>
  
  <pre><code>player.c: In function ‘login’:  
  player.c:54:17: error: void value not ignored as it ought to be
  </code></pre>
  
  <p>This is the code for the error:</p>
  
  <pre><code>static bool login(const char *username, const char *password) {
      sp_error err = sp_session_login(g_sess, username, password, remember_me);
      printf("Signing in...\n");
      if (SP_ERROR_OK != err) {
          printf("Could not signin\n");
          return 0;
      }
      return 1;
  }
  </code></pre>
  
  <p>Any way to bypass this kind of error?<br>
  Thanks</p>
  
  <p><strong>Edit:</strong>
  All sp_ functions are from libspotify</p>