shut the up -Waggregate-return
This commit is contained in:
1 parent
5011b17f88
commit
ab85d6a693
2 files changed
+9
No files matched your search
@@ -737,9 +737,12 @@ void R_DrawPlanes(void)
|
||||
}
|
||||
}
|
||||
#ifdef HAVE_THREADS
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Waggregate-return"
|
||||
tp_sema = srb2::g_main_threadpool->end_sema();
|
||||
srb2::g_main_threadpool->notify_sema(tp_sema);
|
||||
srb2::g_main_threadpool->wait_sema(tp_sema);
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -765,9 +768,12 @@ void R_DrawSkyPlanes(void)
|
||||
}
|
||||
}
|
||||
#ifdef HAVE_THREADS
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Waggregate-return"
|
||||
tp_sema = srb2::g_main_threadpool->end_sema();
|
||||
srb2::g_main_threadpool->notify_sema(tp_sema);
|
||||
srb2::g_main_threadpool->wait_sema(tp_sema);
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -2978,9 +2978,12 @@ static void R_DrawMaskedList(drawnode_t* head)
|
||||
#endif
|
||||
R_DrawSinglePlane(&ds, r2->plane, cv_parallelsoftware.value);
|
||||
#ifdef HAVE_THREADS
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Waggregate-return"
|
||||
tp_sema = srb2::g_main_threadpool->end_sema();
|
||||
srb2::g_main_threadpool->notify_sema(tp_sema);
|
||||
srb2::g_main_threadpool->wait_sema(tp_sema);
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
R_DoneWithNode(r2);
|
||||
r2 = next;
|
||||
|
||||
Reference in new issue
Block a user