ignore some warnings by gcc 4.4.2
authorSamuel Serapion <samuel.serapion@gmail.com>
Mon, 28 Dec 2009 04:46:04 +0000 (04:46 +0000)
committerSamuel Serapion <samuel.serapion@gmail.com>
Mon, 28 Dec 2009 04:46:04 +0000 (04:46 +0000)
svn path=/branches/ros-amd64-bringup/; revision=44789

rostests/apitests/w32knapi/w32knapi.c
rostests/dxtest/win32kdxtest/win32kdxtest.rbuild
rostests/tests/miditest/miditest.c
rostests/tests/p_dup_handle/p_dup_handle.c
rostests/tests/thread/thread.rbuild
rostests/tests/tmrqueue/tmrqueue.rbuild

index 96ae78c..088007d 100644 (file)
@@ -10,6 +10,7 @@ MyGdiQueryTable()
 {
        PTEB pTeb = NtCurrentTeb();
        PPEB pPeb = pTeb->ProcessEnvironmentBlock;
+       printf("TEB::PEB=0x%lx PEB::GdiHT=0x%lx, Peb=%p, Teb=%p\n", FIELD_OFFSET(TEB, ProcessEnvironmentBlock), FIELD_OFFSET(PEB, GdiSharedHandleTable), pTeb, pPeb);
        return pPeb->GdiSharedHandleTable;
 }
 
index ad0499a..566b60b 100644 (file)
@@ -1,4 +1,4 @@
-<module name="win32kdxtest" type="win32cui" installbase="bin" installname="win32kdxtest.exe">
+<module name="win32kdxtest" type="win32cui" installbase="bin" installname="win32kdxtest.exe" allowwarnings="true">
        <include base="win32kdxtest">.</include>
        <library>user32</library>
        <library>gdi32</library>
index 54a9edc..695df00 100644 (file)
@@ -36,7 +36,7 @@ int main()
     printf("Opening MIDI output #0\n");
 
     Result = midiOutOpen(&Handle, 0, 0, 0, CALLBACK_NULL);
-    printf("Result == %d Handle == %x\n", Result, Handle);
+    printf("Result == %d Handle == %p\n", Result, Handle);
 
     // play something:
     midiOutShortMsg(Handle, 0x007f3090);
index 38cc094..9be3fd8 100644 (file)
@@ -38,7 +38,7 @@ int main( int argc, char **argv ) {
     memset( &si, 0, sizeof( si ) );
     memset( &pi, 0, sizeof( pi ) );
 
-    sprintf( cmdline, "%s %x", argv[0], h_process );
+    sprintf( cmdline, "%s %p", argv[0], h_process );
     if( !CreateProcess(NULL, cmdline, NULL, NULL, TRUE, 0, NULL, NULL,
                       &si, &pi ) ) {
       fprintf( stderr, "%lu: Could not create child process.\n",
index 15e4132..25dfc36 100644 (file)
@@ -1,4 +1,4 @@
-<module name="thread" type="win32gui" installbase="bin" installname="thread.exe">
+<module name="thread" type="win32gui" installbase="bin" installname="thread.exe" allowwarnings="true">
        <library>gdi32</library>
        <file>thread.c</file>
 </module>
index 67140e6..04d8a10 100644 (file)
@@ -1,4 +1,4 @@
-<module name="tmrqueue" type="win32gui" installbase="bin" installname="tmrqueue.exe">
+<module name="tmrqueue" type="win32gui" installbase="bin" installname="tmrqueue.exe" allowwarnings="true">
        <library>gdi32</library>
        <file>tmrqueue.c</file>
 </module>