[haiku-commits] r41409 - haiku/branches/developer/bonefish/signals/build/jam

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 10 May 2011 00:47:06 +0200 (CEST)

Author: bonefish
Date: 2011-05-10 00:47:06 +0200 (Tue, 10 May 2011)
New Revision: 41409
Changeset: https://dev.haiku-os.org/changeset/41409

Modified:
   haiku/branches/developer/bonefish/signals/build/jam/MainBuildRules
Log:
The Thread struct is no longer a POD. Just generally disable the "invalid use
of offsetof()" warning for the CreateAsmStructOffsetsHeader rule.


Modified: haiku/branches/developer/bonefish/signals/build/jam/MainBuildRules
===================================================================
--- haiku/branches/developer/bonefish/signals/build/jam/MainBuildRules  
2011-05-09 22:17:56 UTC (rev 41408)
+++ haiku/branches/developer/bonefish/signals/build/jam/MainBuildRules  
2011-05-09 22:47:06 UTC (rev 41409)
@@ -314,6 +314,11 @@
                }
        }
 
+       # Turn off "invalid use of offsetof()" macro warning. We use offsetof() 
also
+       # for non-PODs. Since we're using the same compiler for the whole 
kernel and
+       # don't do virtual inheritence, that works well enough.
+       flags += -Wno-invalid-offsetof ;
+
        # locate object, search for source, and set on target variables
 
        Depends $(header) : $(source) ;


Other related posts:

  • » [haiku-commits] r41409 - haiku/branches/developer/bonefish/signals/build/jam - ingo_weinhold