From 11bbb46220d51c32e3bd6e3c3afb4a6145523228 Mon Sep 17 00:00:00 2001 From: Samuel Serapion Date: Mon, 28 Dec 2009 04:46:04 +0000 Subject: [PATCH] ignore some warnings by gcc 4.4.2 svn path=/branches/ros-amd64-bringup/; revision=44789 --- rostests/apitests/w32knapi/w32knapi.c | 1 + rostests/dxtest/win32kdxtest/win32kdxtest.rbuild | 2 +- rostests/tests/miditest/miditest.c | 2 +- rostests/tests/p_dup_handle/p_dup_handle.c | 2 +- rostests/tests/thread/thread.rbuild | 2 +- rostests/tests/tmrqueue/tmrqueue.rbuild | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/rostests/apitests/w32knapi/w32knapi.c b/rostests/apitests/w32knapi/w32knapi.c index 96ae78ca2a4..088007d1520 100644 --- a/rostests/apitests/w32knapi/w32knapi.c +++ b/rostests/apitests/w32knapi/w32knapi.c @@ -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; } diff --git a/rostests/dxtest/win32kdxtest/win32kdxtest.rbuild b/rostests/dxtest/win32kdxtest/win32kdxtest.rbuild index ad0499a5d05..566b60b131c 100644 --- a/rostests/dxtest/win32kdxtest/win32kdxtest.rbuild +++ b/rostests/dxtest/win32kdxtest/win32kdxtest.rbuild @@ -1,4 +1,4 @@ - + . user32 gdi32 diff --git a/rostests/tests/miditest/miditest.c b/rostests/tests/miditest/miditest.c index 54a9edc641d..695df008aca 100644 --- a/rostests/tests/miditest/miditest.c +++ b/rostests/tests/miditest/miditest.c @@ -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); diff --git a/rostests/tests/p_dup_handle/p_dup_handle.c b/rostests/tests/p_dup_handle/p_dup_handle.c index 38cc094a68f..9be3fd860da 100644 --- a/rostests/tests/p_dup_handle/p_dup_handle.c +++ b/rostests/tests/p_dup_handle/p_dup_handle.c @@ -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", diff --git a/rostests/tests/thread/thread.rbuild b/rostests/tests/thread/thread.rbuild index 15e413233ab..25dfc36b217 100644 --- a/rostests/tests/thread/thread.rbuild +++ b/rostests/tests/thread/thread.rbuild @@ -1,4 +1,4 @@ - + gdi32 thread.c diff --git a/rostests/tests/tmrqueue/tmrqueue.rbuild b/rostests/tests/tmrqueue/tmrqueue.rbuild index 67140e61b04..04d8a102661 100644 --- a/rostests/tests/tmrqueue/tmrqueue.rbuild +++ b/rostests/tests/tmrqueue/tmrqueue.rbuild @@ -1,4 +1,4 @@ - + gdi32 tmrqueue.c -- 2.17.1