This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10509] Compilation error on systems not having NSS support
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 11 Aug 2009 06:31:56 -0000
- Subject: [Bug translator/10509] Compilation error on systems not having NSS support
- References: <20090811055216.10509.maranp@linux.vnet.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wenji dot huang at oracle dot com 2009-08-11 06:31 -------
Reproduced. Maybe add NOPs to let the compiler know the variables are used.
diff --git a/runtime/staprun/staprun_funcs.c b/runtime/staprun/staprun_funcs.c
index 4e525b0..096820b 100644
--- a/runtime/staprun/staprun_funcs.c
+++ b/runtime/staprun/staprun_funcs.c
@@ -459,6 +459,9 @@ int check_permissions(const void *module_data, off_t
module_size)
check_signature_rc = check_signature (module_data, module_size);
if (check_signature_rc == MODULE_ALTERED)
return 0;
+#else /* NOP to keep the parameters used */
+ module_data = module_data;
+ module_size = module_size;
#endif
/* If we're root, we can do anything. */
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10509
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.