Skip to content

Commit fa61596

Browse files
authored
Merge pull request #4312 from martin-frbg/fixotherproto
Fix empty function prototypes
2 parents ecaaece + 9b5f8eb commit fa61596

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

driver/others/blas_server_omp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void openblas_set_num_threads(int num_threads) {
126126
int blas_thread_init(void){
127127

128128
#if defined(__FreeBSD__) && defined(__clang__)
129-
extern int openblas_omp_num_threads_env();
129+
extern int openblas_omp_num_threads_env(void);
130130

131131
if(blas_omp_number_max <= 0)
132132
blas_omp_number_max= openblas_omp_num_threads_env();

driver/others/dynamic_zarch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern gotoblas_t gotoblas_Z14;
1313

1414
#define NUM_CORETYPES 4
1515

16-
extern int openblas_verbose();
16+
extern int openblas_verbose(void);
1717
extern void openblas_warning(int verbose, const char* msg);
1818

1919
char* gotoblas_corename(void) {

driver/others/memory_qalloc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ int goto_get_num_procs (void) {
288288
return blas_cpu_number;
289289
}
290290

291-
void openblas_fork_handler()
291+
void openblas_fork_handler(void)
292292
{
293293
// This handler shuts down the OpenBLAS-managed PTHREAD pool when OpenBLAS is
294294
// built with "make USE_OPENMP=0".
@@ -305,9 +305,9 @@ void openblas_fork_handler()
305305
#endif
306306
}
307307

308-
extern int openblas_num_threads_env();
309-
extern int openblas_goto_num_threads_env();
310-
extern int openblas_omp_num_threads_env();
308+
extern int openblas_num_threads_env(void);
309+
extern int openblas_goto_num_threads_env(void);
310+
extern int openblas_omp_num_threads_env(void);
311311

312312
int blas_get_cpu_number(void){
313313
#if defined(OS_LINUX) || defined(OS_WINDOWS) || defined(OS_FREEBSD) || defined(OS_OPENBSD) || defined(OS_NETBSD) || defined(OS_DRAGONFLY) || defined(OS_DARWIN) || defined(OS_ANDROID)

0 commit comments

Comments
 (0)