Skip to content

Commit

Permalink
Bugfix: slay a variety of warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Jun 13, 2012
1 parent b76053e commit 4eb23c7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions adl.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ void gpu_autotune(int gpu, enum dev_enable *denable);
void clear_adl(int nDevs);
#else /* HAVE_ADL */
#define adl_active (0)
static inline void init_adl(int nDevs) {}
static inline void change_gpusettings(int gpu) { }
static inline void clear_adl(int nDevs) {}
static inline void init_adl(__maybe_unused int nDevs) {}
static inline void change_gpusettings(__maybe_unused int gpu) { }
static inline void clear_adl(__maybe_unused int nDevs) {}
#endif
#endif
2 changes: 1 addition & 1 deletion cgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3797,7 +3797,7 @@ void *miner_thread(void *userdata)
unsigned long long hashes_done = 0;
unsigned long long hashes;
struct work *work = make_work();
unsigned const int request_interval = opt_scantime * 2 / 3 ? : 1;
const time_t request_interval = opt_scantime * 2 / 3 ? : 1;
unsigned const long request_nonce = MAXTHREADS / 3 * 2;
bool requested = false;
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
Expand Down
2 changes: 1 addition & 1 deletion driver-opencl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ void *reinit_gpu(void *userdata)
return NULL;
}
#else
void *reinit_gpu(void *userdata)
void *reinit_gpu(__maybe_unused void *userdata)
{
return NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion miner.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ struct cgpu_info {
int virtual_adl;
int intensity;
bool dynamic;
char *kname;
const char *kname;
#ifdef HAVE_OPENCL
cl_uint vwidth;
size_t work_size;
Expand Down

0 comments on commit 4eb23c7

Please sign in to comment.