[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ros-diffs
Subject:    [ros-diffs] [sedwards] 16333: silence some warnings and break it
From:       <sedwards () svn ! reactos ! com>
Date:       2005-06-29 20:13:58
Message-ID: 000001c57ce7$1551a910$6b01a8c0 () PENELOPE
[Download RAW message or body]

silence some warnings and break it even more
Modified: trunk/reactos/lib/dbghelp/stack.c
Modified: trunk/reactos/lib/dbghelp/stackframe.h
  _____  

Modified: trunk/reactos/lib/dbghelp/stack.c
--- trunk/reactos/lib/dbghelp/stack.c	2005-06-29 20:03:12 UTC (rev
16332)
+++ trunk/reactos/lib/dbghelp/stack.c	2005-06-29 20:13:51 UTC (rev
16333)
@@ -39,6 +39,7 @@

 
 enum st_mode {stm_start, stm_32bit, stm_16bit, stm_done};
 
+#if 0
 static const char* wine_dbgstr_addr(const ADDRESS* addr)
 {
     if (!addr) return "(null)";
@@ -56,6 +57,7 @@
         return "unknown";
     }
 }
+#endif
 
 /* indexes in Reserved array */
 #define __CurrentMode     0
  _____  

Modified: trunk/reactos/lib/dbghelp/stackframe.h
--- trunk/reactos/lib/dbghelp/stackframe.h	2005-06-29 20:03:12 UTC
(rev 16332)
+++ trunk/reactos/lib/dbghelp/stackframe.h	2005-06-29 20:13:51 UTC
(rev 16333)
@@ -69,6 +69,11 @@

 
 #include <poppack.h>
 
+static inline int MapSL(int size)
+{
+return -1;
+}
+
 #define CURRENT_STACK16
((STACK16FRAME*)MapSL(NtCurrentTeb()->cur_stack))
 #define CURRENT_DS           (CURRENT_STACK16->ds)
 

[Attachment #3 (text/html)]

<html>
<head>
<style>
<!--
body { background-color:#ffffff }
.file { border:1px solid #eeeeee; margin-top:1em; margin-bottom:1em }
.pathname { font-family:monospace; float:right }
.fileheader { margin-bottom:.5em }
.diff { margin:0 }
.tasklist { padding:4px; border:1px dashed #000000; margin-top:1em }
.tasklist ul { margin-top:0; margin-bottom:0 }
tr.alt { background-color:#eeeeee }
#added { background-color:#ddffdd }
#addedchars { background-color:#99ff99; font-weight:bolder }
tr.alt #added { background-color:#ccf7cc }
#removed { background-color:#ffdddd }
#removedchars { background-color:#ff9999; font-weight:bolder }
tr.alt #removed { background-color:#f7cccc }
#info { color:#888888 }
#context { background-color:#eeeeee }
td {padding-left:.3em; padding-right:.3em }
tr.head { border-bottom-width:1px; border-bottom-style:solid }
tr.head td { padding:0; padding-top:.2em }
.task { background-color:#ffff00 }
.comment { padding:4px; border:1px dashed #000000; background-color:#ffffdd }
.error { color:red }
hr { border-width:0px; height:2px; background:black }
-->
</style>
</head>
<body>
<pre class="comment">silence some warnings and break it even more</pre><pre \
                class="diff" id="context">Modified: trunk/reactos/lib/dbghelp/stack.c
Modified: trunk/reactos/lib/dbghelp/stackframe.h
</pre><hr /><div class="file">
<div class="fileheader"><big><b>Modified: \
trunk/reactos/lib/dbghelp/stack.c</b></big></div> <pre class="diff"><small \
                id="info">--- trunk/reactos/lib/dbghelp/stack.c	2005-06-29 20:03:12 \
                UTC (rev 16332)
+++ trunk/reactos/lib/dbghelp/stack.c	2005-06-29 20:13:51 UTC (rev 16333)
@@ -39,6 +39,7 @@
</small></pre><pre class="diff" id="context"> 
 enum st_mode {stm_start, stm_32bit, stm_16bit, stm_done};
 
</pre><pre class="diff" id="added">+#if 0
</pre><pre class="diff" id="context"> static const char* wine_dbgstr_addr(const \
ADDRESS* addr)  {
 &nbsp; &nbsp; if (!addr) return &quot;(null)&quot;;
@@ -56,6 +57,7 @@
</pre><pre class="diff" id="context"> &nbsp; &nbsp; &nbsp; &nbsp; return \
&quot;unknown&quot;;  &nbsp; &nbsp; }
 }
</pre><pre class="diff" id="added">+#endif
</pre><pre class="diff" id="context"> 
 /* indexes in Reserved array */
 #define __CurrentMode &nbsp; &nbsp; 0
</pre></div>
<hr /><div class="file">
<div class="fileheader"><big><b>Modified: \
trunk/reactos/lib/dbghelp/stackframe.h</b></big></div> <pre class="diff"><small \
id="info">--- trunk/reactos/lib/dbghelp/stackframe.h	2005-06-29 20:03:12 UTC (rev \
                16332)
+++ trunk/reactos/lib/dbghelp/stackframe.h	2005-06-29 20:13:51 UTC (rev 16333)
@@ -69,6 +69,11 @@
</small></pre><pre class="diff" id="context"> 
 #include &lt;poppack.h&gt;
 
</pre><pre class="diff" id="added">+static inline int MapSL(int size)
+{
+return -1;
+}
+
</pre><pre class="diff" id="context"> #define CURRENT_STACK16 &nbsp; &nbsp; \
&nbsp;((STACK16FRAME*)MapSL(NtCurrentTeb()-&gt;cur_stack))  #define CURRENT_DS &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; (CURRENT_STACK16-&gt;ds)  
</pre>
</div>

</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic