From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] how to avoid a memset() optimization In-reply-to: Your message of "Thu, 14 Nov 2002 16:59:33 GMT." <3DD3D463.BE431AC7@arl.army.mil> From: Tad Hunt Message-ID: Date: Thu, 14 Nov 2002 10:31:13 -0800 Topicbox-Message-UUID: 204df3ca-eacb-11e9-9e20-41e7f4b1d025 someone mentioned something along the lines of void* secmemset(void *buf, int v, int len) { return memset((volatile void*)buf, v, len); } However, isn't GCC going to complain that you're passing a volatile to a function that isn't expecting a volatile? -Tad