MySQL++

Check-in [a014eece1d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Squished Clang complaint in pedantic builds about beemutex's pmutex_ private member being unused when thread-awareness is not enabled.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a014eece1db78b1ca35b792b540a97d631f30620df56d02c2d233c4317a57925
User & Date: tangent 2018-07-27 05:00:28
Context
2018-07-27
05:05
Removed lib/ssqls.h. Shouldn't have been checked in: it's generated by ssqls.pl. check-in: 597de1f616 user: tangent tags: trunk
05:00
Squished Clang complaint in pedantic builds about beemutex's pmutex_ private member being unused when thread-awareness is not enabled. check-in: a014eece1d user: tangent tags: trunk
04:45
Modified the "most economically valuable" stuff in the userman's Unicode chapter to handle the "except for emoji" case. check-in: 0bd33dc4fc user: tangent tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to lib/beemutex.cpp.

    60     60   #	endif
    61     61   #endif
    62     62   
    63     63   
    64     64   BeecryptMutex::BeecryptMutex() MAY_THROW(MutexFailed)
    65     65   #if defined(ACTUALLY_DOES_SOMETHING)
    66     66   	: pmutex_(new bc_mutex_t)
           67  +#else
           68  +	: pmutex_(0)
    67     69   #endif
    68     70   {
    69     71   #if defined(MYSQLPP_PLATFORM_WINDOWS)
    70     72   	*impl_ptr(pmutex_) = CreateMutex((LPSECURITY_ATTRIBUTES) 0, FALSE,
    71     73   			(LPCTSTR) 0);
    72     74   	if (!impl_val(pmutex_))
    73     75   		throw MutexFailed("CreateMutex failed");
................................................................................
    94     96   #	elif HAVE_PTHREAD
    95     97   		pthread_mutex_destroy(impl_ptr(pmutex_));
    96     98   #	elif HAVE_SYNCH_H
    97     99   		mutex_destroy(impl_ptr(pmutex_));
    98    100   #	endif
    99    101   
   100    102   	delete impl_ptr(pmutex_);
          103  +#else
          104  +    (void)pmutex_;
   101    105   #endif
   102    106   }
   103    107   
   104    108   
   105    109   void
   106    110   BeecryptMutex::lock() MAY_THROW(MutexFailed)
   107    111   {