Visual Studio 2008 unreferenced local variable bug

screenshot ’cause typing is for wusses

UPDATE: not actually VS bug. Nasty macro defining strtok_r to strtok on Win32. ouch.

2 Responses to “Visual Studio 2008 unreferenced local variable bug”

  1. wlad Says:

    The nasty macro can be less nasty is strtok_r would be defined to strtok_s (requires VS2005 or later though)
    http://msdn.microsoft.com/en-us/library/ftsafwz3(VS.80).aspx

  2. MacPlusG3 Says:

    Yeah, that’s what I now have (with #ifdef’s). Although it’s not good for VS2003, which build team uses :(

Leave a Reply