+CWARNFLAGS = $(CWARNFLAGS_STD) -Wno-unused-parameter
+CXXWARNFLAGS = $(CXXWARNFLAGS_STD) -Wno-unused-parameter -Wno-cast-qual -Wno-shadow
+
+# Objects that don't want -Wcast-align warning (8474835)
+IOHibernateRestoreKernel.o_CWARNFLAGS_ADD = -Wno-cast-align
+CXXOBJS_NO_CAST_ALIGN = \
+ IODMACommand.cpo \
+ IODataQueue.cpo \
+ IOHibernateIO.cpo \
+ IOMemoryDescriptor.cpo \
+ IONVRAM.cpo \
+ IOPMrootDomain.cpo \
+ IOSharedDataQueue.cpo \
+ IOUserClient.cpo
+
+$(foreach file,$(CXXOBJS_NO_CAST_ALIGN),$(eval $(call add_perfile_cxxflags,$(file),-Wno-cast-align)))
+
+CFLAGS_RELEASE += -DIOASSERT=0
+CFLAGS_DEVELOPMENT += -DIOASSERT=1
+CFLAGS_DEBUG += -DIOASSERT=1