"-Wno-aggregate-return" for c++
This commit is contained in:
1 parent
d78a6cb0c6
commit
f9161963b7
3 files changed
+3
-9
No files matched your search
@@ -16,6 +16,9 @@ $(foreach v,$(join $(wordlist 2,$(_n),- $(gcc_versions)),\
|
||||
$(and $(findstring =,$(v)),\
|
||||
$(eval $(call _predecessor,$(subst =, ,$(v))))))
|
||||
|
||||
# aggregate returns seem to happen alot in c++ so just supress em lel
|
||||
CXXFLAGS+= -Wno-aggregate-return
|
||||
|
||||
# -W -Wno-unused
|
||||
WFLAGS:=-Wall -Wno-trigraphs
|
||||
ifndef GCC295
|
||||
|
||||
@@ -740,12 +740,9 @@ 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
|
||||
}
|
||||
|
||||
@@ -771,12 +768,9 @@ 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
|
||||
}
|
||||
|
||||
|
||||
@@ -2985,12 +2985,9 @@ 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