This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10509] Compilation error on systems not having NSS support


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]