AM_CFLAGS += $(AM_FLAG_M3264_PRI)
AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
+# We don't care about unused malloc results
+big_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
new_cpp_SOURCES = new-cpp.cpp
overloaded_new_SOURCES = overloaded-new.cpp
+# Suppress warnings for issues we are testing for
+alloc_fns_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
+big_alloc_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
+culling1_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
+culling2_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
+deep_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
+ignoring_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
+insig_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
+long_names_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
+one_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
+thresholds_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
demangle_SOURCES = demangle.cpp
+# Suppress various gcc warnings which are correct, but for things
+# we are actually testing for at runtime.
+accounting_CFLAGS = $(AM_CFLAGS) -Wno-alloc-size-larger-than
+bug155125_CFLAGS = $(AM_CFLAGS) -Wno-unused-result -Wno-alloc-size-larger-than
+malloc3_CFLAGS = $(AM_CFLAGS) -Wno-alloc-size-larger-than
+
big_debuginfo_symbol_SOURCES = big_debuginfo_symbol.cpp
big_debuginfo_symbol_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x
sized_delete_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_FSIZED_DEALLOCATION@
endif
-str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow \
+str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow -Wno-stringop-overflow \
+ -Wno-stringop-truncation \
@FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@
supp_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
int main(int argc, char **argv)
{
- struct mq_attr mqa;
+ struct mq_attr mqa, mqa2;
mqd_t mqdw;
mqd_t mqdr;
char buffer[MSGSIZEMAX];
exit(1);
}
- if (mq_setattr(mqdw, &mqa, &mqa) < 0)
+ mqa2 = mqa;
+ if (mq_setattr(mqdw, &mqa, &mqa2) < 0)
{
perror("mq_setattr");
mq_close(mqdr);